diff --git a/.fern/metadata.json b/.fern/metadata.json index 9d704c2e..303d9817 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.119.2", + "cliVersion": "5.130.0", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.63.0", "generatorConfig": { @@ -11,10 +11,10 @@ "omitUndefined": true, "enableInlineTypes": false }, - "originGitCommit": "ca6a646c295c707d5b6dff2fceab26c86c9137d5", + "originGitCommit": "b12a629adc457f8fb95ba5a113102ea70b56df9e", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "2.0.1" + "sdkVersion": "3.0.0" } diff --git a/.fern/replay.lock b/.fern/replay.lock index 3a8062c8..7a721934 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-sdk: 3.63.0 -current_generation: 5037338ca89fe36163c30364fd68c07e99299a5b + - commit_sha: a0e9b1c54bbbd2bb19f20c5e4928632f9e66dc31 + tree_hash: 5610dffb1dcd04711062884c737510d2d3dfb096 + timestamp: 2026-09-21T17:14:06.372Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-sdk: 3.63.0 +current_generation: a0e9b1c54bbbd2bb19f20c5e4928632f9e66dc31 patches: [] diff --git a/changelog.md b/changelog.md index e0a673b4..94143f14 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,13 @@ +## [3.0.0] - 2026-09-21 +### Added +- **`OpenAiSpeaker`**, **`OpenAiReasoner`**, and **`OpenAiModelServiceTier`** — new types for GPT-Live configuration, exposed as optional fields on `OpenAiModel`. +- **`squadVersion`** — new optional field on `CreateCallDto`, `Call`, `CreateOutboundCallDto`, and `CreateWebCallDto` to pin a specific squad version for a call. +- **`SquadVersion`**, **`SquadVersionPaginatedResponse`**, and **`SquadVersionPaginatedMetadata`** — new types supporting squad version history with labels, config hashes, pagination metadata, and member snapshots. +- **`OrgLimitsResponseDto`**, **`OrgConcurrencyLimitsDto`**, and **`OrgApiLimitsDto`** — new types exposing org-level concurrency and API rate-limit information. +- **`modelDeprecations`** — new optional `ModelDeprecationNotice[]` field on `Assistant`, `AssistantDraft`, `AssistantVersion`, and `Squad` responses, surfacing deprecation and retirement info for models in use. +- **`ToolWriteConflictResponseDto`** and **`ForbiddenError`** — new error response types for tool write conflicts (HTTP 409) and forbidden access (HTTP 403). +- **New enum values** added across several types, including `CallStartSquadVersionErrorValidation` in ended-reason enums, `SquadVersion` in `VersionPinReferenceSourceType`, `HipaaSpecial` in `UpdateUserRoleDtoRoleZero`, new `RimeAiVoiceModel` values (`coda`, `mistv3`), and expanded `AssemblyAiTranscriberLanguageCodesItem` language codes. + ## [2.0.1] - 2026-08-26 ## 2.0.0 - 2026-06-24 diff --git a/package.json b/package.json index 5ebe74c5..db548edb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "2.0.1", + "version": "3.0.0", "private": false, "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07b5e068..3d168465 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -279,8 +279,8 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@tybys/wasm-util@0.10.3': - resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -1153,7 +1153,7 @@ snapshots: dependencies: '@emnapi/core': 1.11.3 '@emnapi/runtime': 1.11.3 - '@tybys/wasm-util': 0.10.3 + '@tybys/wasm-util': 0.10.4 optional: true '@open-draft/deferred-promise@2.2.0': {} @@ -1221,7 +1221,7 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@tybys/wasm-util@0.10.3': + '@tybys/wasm-util@0.10.4': dependencies: tslib: 2.8.1 optional: true diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 57a9cccf..c6b5e276 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -52,8 +52,8 @@ export function normalizeClientOptions; + format: Vapi.AudioFormatFormat; /** * This is the container format of the call. * diff --git a/src/api/types/AudioFormatFormat.ts b/src/api/types/AudioFormatFormat.ts new file mode 100644 index 00000000..31d96d5c --- /dev/null +++ b/src/api/types/AudioFormatFormat.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * This is the audio format of the call. + * + * @default 'pcm_s16le' + */ +export const AudioFormatFormat = { + PcmS16Le: "pcm_s16le", + Mulaw: "mulaw", +} as const; +export type AudioFormatFormat = (typeof AudioFormatFormat)[keyof typeof AudioFormatFormat]; diff --git a/src/api/types/Call.ts b/src/api/types/Call.ts index 8896a4e4..06c05677 100644 --- a/src/api/types/Call.ts +++ b/src/api/types/Call.ts @@ -37,6 +37,11 @@ export interface Call { * direct `assistantId`. Omit to follow the latest version. */ assistantVersion?: (string | null) | undefined; + /** + * This is the squad version to use for this call. Supported only with + * direct `squadId`. Omit to follow the latest version. + */ + squadVersion?: (string | null) | undefined; /** This is the transport of the call. */ transport?: Vapi.CallTransport | undefined; /** This is the unique identifier for the call. */ diff --git a/src/api/types/CallEndedReason.ts b/src/api/types/CallEndedReason.ts index 49234e59..f536988e 100644 --- a/src/api/types/CallEndedReason.ts +++ b/src/api/types/CallEndedReason.ts @@ -28,6 +28,7 @@ export const CallEndedReason = { CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: "call.start.error-enterprise-feature-not-available-recording-consent", CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation", + CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation", AssistantNotValid: "assistant-not-valid", CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", AssistantNotFound: "assistant-not-found", diff --git a/src/api/types/ConflictErrorBody.ts b/src/api/types/ConflictErrorBody.ts new file mode 100644 index 00000000..e70472ec --- /dev/null +++ b/src/api/types/ConflictErrorBody.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export type ConflictErrorBody = Vapi.ConflictErrorBody.ToolPinned | Vapi.ConflictErrorBody.ToolWriteConflict; + +export namespace ConflictErrorBody { + export interface ToolPinned extends Vapi.ToolPinnedConflictResponseDto { + error: "tool_pinned"; + } + + export interface ToolWriteConflict extends Vapi.ToolWriteConflictResponseDto { + error: "tool_write_conflict"; + } +} diff --git a/src/api/types/CreateOutboundCallDto.ts b/src/api/types/CreateOutboundCallDto.ts index 8610342d..e96b15a0 100644 --- a/src/api/types/CreateOutboundCallDto.ts +++ b/src/api/types/CreateOutboundCallDto.ts @@ -8,6 +8,11 @@ export interface CreateOutboundCallDto { * direct `assistantId`. Omit to follow the latest version. */ assistantVersion?: (string | null) | undefined; + /** + * This is the squad version to use for this call. Supported only with + * direct `squadId`. Omit to follow the latest version. + */ + squadVersion?: (string | null) | undefined; /** This is the transport of the call. */ transport?: Vapi.CreateOutboundCallDtoTransport | undefined; /** diff --git a/src/api/types/CreateStructuredOutputDto.ts b/src/api/types/CreateStructuredOutputDto.ts index f08e2aa3..890964fb 100644 --- a/src/api/types/CreateStructuredOutputDto.ts +++ b/src/api/types/CreateStructuredOutputDto.ts @@ -18,6 +18,15 @@ export interface CreateStructuredOutputDto { /** * This is the regex pattern to match against the transcript. * + * Simulation evaluations use a canonical transcript built from recorded messages: + * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and + * AI: tool_call_results: JSON results. System messages are excluded. These + * fixed labels apply even when custom artifact transcript labels are configured. + * Tool payloads participate in first-match and all-match extraction in event order. + * An empty message array falls back to the supplied transcript verbatim. + * Production-call extraction and call preview use their existing transcripts, + * so previewing the same output on a simulation's call can return a different result. + * * Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and * regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety. * diff --git a/src/api/types/CreateWebCallDto.ts b/src/api/types/CreateWebCallDto.ts index f3d73618..35d7a6d4 100644 --- a/src/api/types/CreateWebCallDto.ts +++ b/src/api/types/CreateWebCallDto.ts @@ -8,6 +8,11 @@ export interface CreateWebCallDto { * direct `assistantId`. Omit to follow the latest version. */ assistantVersion?: (string | null) | undefined; + /** + * This is the squad version to use for this call. Supported only with + * direct `squadId`. Omit to follow the latest version. + */ + squadVersion?: (string | null) | undefined; roomDeleteOnUserLeaveEnabled?: boolean | undefined; /** * This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead. diff --git a/src/api/types/DeepgramTranscriber.ts b/src/api/types/DeepgramTranscriber.ts index 5c02023e..6a1dd4fe 100644 --- a/src/api/types/DeepgramTranscriber.ts +++ b/src/api/types/DeepgramTranscriber.ts @@ -15,7 +15,7 @@ export interface DeepgramTranscriber { /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * - * This will only be used if you are using your own Deepgram API key. + * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to. * * @default false */ diff --git a/src/api/types/DeepgramVoice.ts b/src/api/types/DeepgramVoice.ts index db48fd8d..1e067315 100644 --- a/src/api/types/DeepgramVoice.ts +++ b/src/api/types/DeepgramVoice.ts @@ -15,7 +15,7 @@ export interface DeepgramVoice { /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * - * This will only be used if you are using your own Deepgram API key. + * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to. * * @default false */ diff --git a/src/api/types/EvalRun.ts b/src/api/types/EvalRun.ts index 3c62654a..f6835b5c 100644 --- a/src/api/types/EvalRun.ts +++ b/src/api/types/EvalRun.ts @@ -36,14 +36,11 @@ export interface EvalRun { endedAt: string; /** This is the ended message when the eval run ended for any reason apart from mockConversation.done */ endedMessage?: string | undefined; - /** - * This is the results of the eval or suite run. - * The array will have a single item for an eval run, and multiple items each corresponding to the an eval in a suite run in the same order as the evals in the suite. - */ + /** Results for this individual Eval. Check them after status is ended. An Eval that finishes normally contains one result; it passes only when all judged checkpoints pass. Grouping multiple Evals requires your own orchestration, not an Eval suite. */ results: Vapi.EvalRunResult[]; - /** This is the cost of the eval or suite run in USD. */ + /** The cost of this Eval run in USD. */ cost: number; - /** This is the break up of costs of the eval or suite run. */ + /** The cost breakdown for this Eval run. */ costs: Record[]; /** * This is the type of the run. diff --git a/src/api/types/FallbackAssemblyAiTranscriber.ts b/src/api/types/FallbackAssemblyAiTranscriber.ts index 22317d49..cd8ccb69 100644 --- a/src/api/types/FallbackAssemblyAiTranscriber.ts +++ b/src/api/types/FallbackAssemblyAiTranscriber.ts @@ -51,21 +51,32 @@ export interface FallbackAssemblyAiTranscriber { */ vadAssistedEndpointingEnabled?: boolean | undefined; /** - * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model. + * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. * * @default 'balanced' */ mode?: Vapi.FallbackAssemblyAiTranscriberMode | undefined; - /** This is a prompt that provides additional context to the transcription model. Only applies to the `universal-3-5-pro` speech model. */ + /** This is a prompt that provides additional context to the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */ prompt?: string | undefined; - /** This is context about the voice agent that guides the transcription model. Only applies to the `universal-3-5-pro` speech model. */ + /** This is context about the voice agent that guides the transcription model. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. */ agentContext?: string | undefined; - /** These are language codes used to steer automatic language detection. Only applies to the `universal-3-5-pro` speech model. */ + /** + * When true, the text the assistant just spoke is sent to AssemblyAI as `agent_context` after every assistant turn, replacing the previous value, so the user's reply is transcribed in the context of the question it answers. + * `agentContext` still seeds the first turn. Text longer than 1750 characters keeps its last 1750 characters. Turns the user interrupted are not sent when the interruption is detected by voice activity (the default, `stopSpeakingPlan.numWords: 0`). + * Only applies to `universal-3-5-pro` and `universal-3-6-pro`. + * + * @default false + */ + agentContextAutoUpdateEnabled?: boolean | undefined; + /** + * These are language codes used to steer automatic language detection. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. + * `ur`, `ru`, `ko`, `ca`, `gl`, `ro`, `et`, `fa`, `yue`, `af`, `mr`, `zu`, `xh` and `nn` were added with `universal-3-6-pro`. + */ languageCodes?: Vapi.FallbackAssemblyAiTranscriberLanguageCodesItem[] | undefined; /** * This is the speech model used for the streaming session. - * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro. - * universal-3-5-pro is AssemblyAI's most accurate voice-agent model. + * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro. + * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model. * @default 'universal-streaming-english' */ speechModel?: Vapi.FallbackAssemblyAiTranscriberSpeechModel | undefined; @@ -76,7 +87,7 @@ export interface FallbackAssemblyAiTranscriber { /** * Keyterms prompting improves recognition accuracy for specific words and phrases. * Can include up to 100 keyterms, each up to 50 characters. - * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on universal-3-5-pro. + * Costs an additional $0.04/hour on universal-streaming-english and is included at no extra cost on the Universal Pro models (universal-3-5-pro, universal-3-6-pro). */ keytermsPrompt?: string[] | undefined; /** The duration of the end utterance silence threshold in milliseconds. */ diff --git a/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts b/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts index 86b7dbac..f3ef1846 100644 --- a/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts +++ b/src/api/types/FallbackAssemblyAiTranscriberLanguageCodesItem.ts @@ -19,6 +19,20 @@ export const FallbackAssemblyAiTranscriberLanguageCodesItem = { He: "he", Ja: "ja", Zh: "zh", + Ur: "ur", + Ru: "ru", + Ko: "ko", + Ca: "ca", + Gl: "gl", + Ro: "ro", + Et: "et", + Fa: "fa", + Yue: "yue", + Af: "af", + Mr: "mr", + Zu: "zu", + Xh: "xh", + Nn: "nn", } as const; export type FallbackAssemblyAiTranscriberLanguageCodesItem = (typeof FallbackAssemblyAiTranscriberLanguageCodesItem)[keyof typeof FallbackAssemblyAiTranscriberLanguageCodesItem]; diff --git a/src/api/types/FallbackAssemblyAiTranscriberMode.ts b/src/api/types/FallbackAssemblyAiTranscriberMode.ts index b2793b04..a31d9975 100644 --- a/src/api/types/FallbackAssemblyAiTranscriberMode.ts +++ b/src/api/types/FallbackAssemblyAiTranscriberMode.ts @@ -1,7 +1,7 @@ // This file was auto-generated by Fern from our API Definition. /** - * This is the transcription mode used by the `universal-3-5-pro` speech model. Only applies to the `universal-3-5-pro` speech model. + * This is the transcription mode used by the Universal Pro speech models. Only applies to `universal-3-5-pro` and `universal-3-6-pro`. * * @default 'balanced' */ diff --git a/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts b/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts index 83d847e4..2f577c99 100644 --- a/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts +++ b/src/api/types/FallbackAssemblyAiTranscriberSpeechModel.ts @@ -2,14 +2,15 @@ /** * This is the speech model used for the streaming session. - * Keyterms prompting is supported on universal-streaming-english and universal-3-5-pro. - * universal-3-5-pro is AssemblyAI's most accurate voice-agent model. + * Keyterms prompting is supported on universal-streaming-english, universal-3-5-pro and universal-3-6-pro. + * universal-3-6-pro is AssemblyAI's newest and most accurate voice-agent model. * @default 'universal-streaming-english' */ export const FallbackAssemblyAiTranscriberSpeechModel = { UniversalStreamingEnglish: "universal-streaming-english", UniversalStreamingMultilingual: "universal-streaming-multilingual", Universal35Pro: "universal-3-5-pro", + Universal36Pro: "universal-3-6-pro", } as const; export type FallbackAssemblyAiTranscriberSpeechModel = (typeof FallbackAssemblyAiTranscriberSpeechModel)[keyof typeof FallbackAssemblyAiTranscriberSpeechModel]; diff --git a/src/api/types/FallbackDeepgramTranscriber.ts b/src/api/types/FallbackDeepgramTranscriber.ts index f7f03207..279421e8 100644 --- a/src/api/types/FallbackDeepgramTranscriber.ts +++ b/src/api/types/FallbackDeepgramTranscriber.ts @@ -15,7 +15,7 @@ export interface FallbackDeepgramTranscriber { /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * - * This will only be used if you are using your own Deepgram API key. + * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to. * * @default false */ diff --git a/src/api/types/FallbackDeepgramVoice.ts b/src/api/types/FallbackDeepgramVoice.ts index 63c9b903..8408c77f 100644 --- a/src/api/types/FallbackDeepgramVoice.ts +++ b/src/api/types/FallbackDeepgramVoice.ts @@ -15,7 +15,7 @@ export interface FallbackDeepgramVoice { /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * - * This will only be used if you are using your own Deepgram API key. + * This only applies to your own Deepgram API key. Requests on Vapi's key always opt out, whatever this is set to. * * @default false */ diff --git a/src/api/types/FallbackOpenAiVoice.ts b/src/api/types/FallbackOpenAiVoice.ts index 9fd598d5..24ee5fff 100644 --- a/src/api/types/FallbackOpenAiVoice.ts +++ b/src/api/types/FallbackOpenAiVoice.ts @@ -8,11 +8,7 @@ import type * as Vapi from "../index.js"; export interface FallbackOpenAiVoice { /** This is the flag to toggle voice caching for the assistant. */ cachingEnabled?: boolean | undefined; - /** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. - */ - voiceId: Vapi.FallbackOpenAiVoiceId; + voiceId?: unknown | undefined; /** This is the model that will be used for text-to-speech. */ model?: Vapi.FallbackOpenAiVoiceModel | undefined; /** diff --git a/src/api/types/FallbackOpenAiVoiceId.ts b/src/api/types/FallbackOpenAiVoiceId.ts deleted file mode 100644 index d9ef3151..00000000 --- a/src/api/types/FallbackOpenAiVoiceId.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Vapi from "../index.js"; - -/** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. - */ -export type FallbackOpenAiVoiceId = Vapi.FallbackOpenAiVoiceIdEnum | string; diff --git a/src/api/types/FallbackOpenAiVoiceIdEnum.ts b/src/api/types/FallbackOpenAiVoiceIdEnum.ts deleted file mode 100644 index 66222d82..00000000 --- a/src/api/types/FallbackOpenAiVoiceIdEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const FallbackOpenAiVoiceIdEnum = { - Alloy: "alloy", - Echo: "echo", - Fable: "fable", - Onyx: "onyx", - Nova: "nova", - Shimmer: "shimmer", - Marin: "marin", - Cedar: "cedar", -} as const; -export type FallbackOpenAiVoiceIdEnum = (typeof FallbackOpenAiVoiceIdEnum)[keyof typeof FallbackOpenAiVoiceIdEnum]; diff --git a/src/api/types/FallbackRimeAiVoiceId.ts b/src/api/types/FallbackRimeAiVoiceId.ts index 799eee73..cc4c0302 100644 --- a/src/api/types/FallbackRimeAiVoiceId.ts +++ b/src/api/types/FallbackRimeAiVoiceId.ts @@ -7,7 +7,7 @@ import type * as Vapi from "../index.js"; */ export type FallbackRimeAiVoiceId = /** - * Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ + * Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ | Vapi.FallbackRimeAiVoiceIdEnum /** * Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog. */ diff --git a/src/api/types/FallbackRimeAiVoiceIdEnum.ts b/src/api/types/FallbackRimeAiVoiceIdEnum.ts index 47b79861..1ce1e6df 100644 --- a/src/api/types/FallbackRimeAiVoiceIdEnum.ts +++ b/src/api/types/FallbackRimeAiVoiceIdEnum.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -/** Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ +/** Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ export const FallbackRimeAiVoiceIdEnum = { Cove: "cove", Moon: "moon", @@ -52,5 +52,12 @@ export const FallbackRimeAiVoiceIdEnum = { Masonry: "masonry", Albion: "albion", Parapet: "parapet", + Clementine: "clementine", + Walnut: "walnut", + Eyre: "eyre", + Bancroft: "bancroft", + Hesse: "hesse", + Beatty: "beatty", + Godfrey: "godfrey", } as const; export type FallbackRimeAiVoiceIdEnum = (typeof FallbackRimeAiVoiceIdEnum)[keyof typeof FallbackRimeAiVoiceIdEnum]; diff --git a/src/api/types/FallbackRimeAiVoiceModel.ts b/src/api/types/FallbackRimeAiVoiceModel.ts index f2e70d56..b950403c 100644 --- a/src/api/types/FallbackRimeAiVoiceModel.ts +++ b/src/api/types/FallbackRimeAiVoiceModel.ts @@ -3,7 +3,9 @@ /** This is the model that will be used. Defaults to 'arcana' when not specified. */ export const FallbackRimeAiVoiceModel = { Arcana: "arcana", + Coda: "coda", Mistv2: "mistv2", + Mistv3: "mistv3", Mist: "mist", } as const; export type FallbackRimeAiVoiceModel = (typeof FallbackRimeAiVoiceModel)[keyof typeof FallbackRimeAiVoiceModel]; diff --git a/src/api/types/FilePaginatedResponse.ts b/src/api/types/FilePaginatedResponse.ts new file mode 100644 index 00000000..255cc909 --- /dev/null +++ b/src/api/types/FilePaginatedResponse.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface FilePaginatedResponse { + results: Vapi.File_[]; + metadata: Vapi.PaginationMeta; +} diff --git a/src/api/types/InviteUserDtoRoleZero.ts b/src/api/types/InviteUserDtoRoleZero.ts index 0276a9ec..29746339 100644 --- a/src/api/types/InviteUserDtoRoleZero.ts +++ b/src/api/types/InviteUserDtoRoleZero.ts @@ -4,5 +4,6 @@ export const InviteUserDtoRoleZero = { Admin: "admin", Editor: "editor", Viewer: "viewer", + HipaaSpecial: "hipaa-special", } as const; export type InviteUserDtoRoleZero = (typeof InviteUserDtoRoleZero)[keyof typeof InviteUserDtoRoleZero]; diff --git a/src/api/types/JsonQueryOnEventsTableOn.ts b/src/api/types/JsonQueryOnEventsTableOn.ts index a6ec0f47..6952e21b 100644 --- a/src/api/types/JsonQueryOnEventsTableOn.ts +++ b/src/api/types/JsonQueryOnEventsTableOn.ts @@ -57,6 +57,7 @@ export const JsonQueryOnEventsTableOn = { AssistantModelRequestAttemptStarted: "assistant.model.requestAttemptStarted", AssistantModelRequestAttemptSucceeded: "assistant.model.requestAttemptSucceeded", AssistantModelRequestAttemptFailed: "assistant.model.requestAttemptFailed", + AssistantKnowledgeBaseRequestSucceeded: "assistant.knowledgeBase.requestSucceeded", AssistantModelConnectionOpened: "assistant.model.connectionOpened", AssistantModelConnectionClosed: "assistant.model.connectionClosed", AssistantModelFirstTokenReceived: "assistant.model.firstTokenReceived", diff --git a/src/api/types/ModelCost.ts b/src/api/types/ModelCost.ts index b0c086a3..7b35f1bb 100644 --- a/src/api/types/ModelCost.ts +++ b/src/api/types/ModelCost.ts @@ -4,6 +4,10 @@ * Language-model cost for a call, including model, token usage, and amount. */ export interface ModelCost { + /** Provider-reported billable duration in seconds. Currently supplied for GPT-Live; omitted for token-billed models. */ + seconds?: number | undefined; + /** Whether the reported usage is complete. False means the cost reflects missing or partial usage and may understate provider spend. Omitted when the provider integration does not report completeness. */ + usageComplete?: boolean | undefined; /** * This is the model that was used during the call. * diff --git a/src/api/types/ModelDeprecationNotice.ts b/src/api/types/ModelDeprecationNotice.ts new file mode 100644 index 00000000..d9f0f33f --- /dev/null +++ b/src/api/types/ModelDeprecationNotice.ts @@ -0,0 +1,28 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface ModelDeprecationNotice { + /** + * Path of the slot that carries the model, relative to the response root, + * e.g. `model`, `model.fallbackModels[1]`, `transcriber`, `voice`, or + * `members[2].assistantOverrides.model` on a squad. + */ + slot: string; + /** Provider as stored on the slot. */ + provider: string; + /** Model name as stored on the slot. */ + model: string; + /** Day the model became deprecated, `YYYY-MM-DD` in UTC. */ + deprecationDate: string; + /** + * Day the model is or was retired, `YYYY-MM-DD` in UTC. On and after this + * day Vapi no longer runs the model as configured. + */ + retirementDate: string; + /** + * The recommended migration target for the slot's model: the registry's + * replacement, followed through any further retirements as of the response + * date, so it names a model that is alive on that day. A `:` + * pin on the slot's model is kept on the target. + */ + replacementModel: string; +} diff --git a/src/api/types/OpenAiModel.ts b/src/api/types/OpenAiModel.ts index ba4541a1..65f5ec6f 100644 --- a/src/api/types/OpenAiModel.ts +++ b/src/api/types/OpenAiModel.ts @@ -29,8 +29,13 @@ export interface OpenAiModel { toolRefs?: Vapi.ToolRef[] | undefined; /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto | undefined; + /** Configuration for the GPT-Live speaker. */ + speaker?: Vapi.OpenAiSpeaker | undefined; + /** Configuration for the reasoner supporting the GPT-Live speaker. */ + reasoner?: Vapi.OpenAiReasoner | undefined; /** * This is the OpenAI model that will be used. + * For GPT-Live configuration and supported settings, see https://docs.vapi.ai/gpt-live/overview. * * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. @@ -68,6 +73,18 @@ export interface OpenAiModel { * @default undefined */ promptCacheKey?: string | undefined; + /** + * This is the OpenAI service tier used for chat completions requests. + * + * - `fast`: OpenAI's fast processing tier (renamed from `priority` on 2026-07-30; both values are accepted and billed identically) — up to ~2.5x faster inference at 2x the standard token rates. OpenAI may silently downgrade a fast request to standard processing under ramp limits; when that happens the response reports the served tier and the request is billed at standard rates. + * - `auto`: uses the service tier configured for the OpenAI project. + * - `default`: standard processing and billing. + * + * Only applies to models that support fast processing: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5. Ignored for other models. + * + * @default undefined (uses the service tier configured for the OpenAI project) + */ + serviceTier?: Vapi.OpenAiModelServiceTier | undefined; /** * Reasoning effort for reasoning-capable OpenAI models. * For `gpt-realtime-2`: forwarded to V2 stream's session.update as `reasoning.effort`. diff --git a/src/api/types/OpenAiModelModel.ts b/src/api/types/OpenAiModelModel.ts index 5fc529b7..badf0be9 100644 --- a/src/api/types/OpenAiModelModel.ts +++ b/src/api/types/OpenAiModelModel.ts @@ -2,6 +2,7 @@ /** * This is the OpenAI model that will be used. + * For GPT-Live configuration and supported settings, see https://docs.vapi.ai/gpt-live/overview. * * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. @@ -165,5 +166,6 @@ export const OpenAiModelModel = { Gpt41Australiaeast: "gpt-4.1:australiaeast", Gpt4OAustraliaeast: "gpt-4o:australiaeast", Gpt54MiniAustraliaeast: "gpt-5.4-mini:australiaeast", + GptLive1: "gpt-live-1", } as const; export type OpenAiModelModel = (typeof OpenAiModelModel)[keyof typeof OpenAiModelModel]; diff --git a/src/api/types/OpenAiModelServiceTier.ts b/src/api/types/OpenAiModelServiceTier.ts new file mode 100644 index 00000000..bdae06b6 --- /dev/null +++ b/src/api/types/OpenAiModelServiceTier.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * This is the OpenAI service tier used for chat completions requests. + * + * - `fast`: OpenAI's fast processing tier (renamed from `priority` on 2026-07-30; both values are accepted and billed identically) — up to ~2.5x faster inference at 2x the standard token rates. OpenAI may silently downgrade a fast request to standard processing under ramp limits; when that happens the response reports the served tier and the request is billed at standard rates. + * - `auto`: uses the service tier configured for the OpenAI project. + * - `default`: standard processing and billing. + * + * Only applies to models that support fast processing: gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5. Ignored for other models. + * + * @default undefined (uses the service tier configured for the OpenAI project) + */ +export const OpenAiModelServiceTier = { + Auto: "auto", + Default: "default", + Fast: "fast", + Priority: "priority", +} as const; +export type OpenAiModelServiceTier = (typeof OpenAiModelServiceTier)[keyof typeof OpenAiModelServiceTier]; diff --git a/src/api/types/OpenAiReasoner.ts b/src/api/types/OpenAiReasoner.ts new file mode 100644 index 00000000..cdccac71 --- /dev/null +++ b/src/api/types/OpenAiReasoner.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface OpenAiReasoner { + /** The reasoner uses OpenAI. Omit to use OpenAI. */ + provider?: Vapi.OpenAiReasonerProvider | undefined; + /** The delegated reasoning model. Omit to use GPT-5.6 Terra. */ + model?: Vapi.OpenAiReasonerModel | undefined; + /** Higher effort can increase response time. Omit to use low. */ + reasoningEffort?: Vapi.OpenAiReasonerReasoningEffort | undefined; + /** + * Complete reasoner instructions. An explicit empty string is preserved. + * Omit to use Vapi's default reasoner instructions. No behavioral instructions + * are appended to a custom prompt. + */ + instructions?: string | undefined; +} diff --git a/src/api/types/OpenAiReasonerModel.ts b/src/api/types/OpenAiReasonerModel.ts new file mode 100644 index 00000000..c22ade91 --- /dev/null +++ b/src/api/types/OpenAiReasonerModel.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +/** The delegated reasoning model. Omit to use GPT-5.6 Terra. */ +export const OpenAiReasonerModel = { + Gpt56Sol: "gpt-5.6-sol", + Gpt56Terra: "gpt-5.6-terra", + Gpt56Luna: "gpt-5.6-luna", +} as const; +export type OpenAiReasonerModel = (typeof OpenAiReasonerModel)[keyof typeof OpenAiReasonerModel]; diff --git a/src/api/types/OpenAiReasonerProvider.ts b/src/api/types/OpenAiReasonerProvider.ts new file mode 100644 index 00000000..26c79512 --- /dev/null +++ b/src/api/types/OpenAiReasonerProvider.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +/** The reasoner uses OpenAI. Omit to use OpenAI. */ +export const OpenAiReasonerProvider = { + Openai: "openai", +} as const; +export type OpenAiReasonerProvider = (typeof OpenAiReasonerProvider)[keyof typeof OpenAiReasonerProvider]; diff --git a/src/api/types/OpenAiReasonerReasoningEffort.ts b/src/api/types/OpenAiReasonerReasoningEffort.ts new file mode 100644 index 00000000..cfa19c95 --- /dev/null +++ b/src/api/types/OpenAiReasonerReasoningEffort.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +/** Higher effort can increase response time. Omit to use low. */ +export const OpenAiReasonerReasoningEffort = { + None: "none", + Low: "low", + Medium: "medium", + High: "high", + Xhigh: "xhigh", + Max: "max", +} as const; +export type OpenAiReasonerReasoningEffort = + (typeof OpenAiReasonerReasoningEffort)[keyof typeof OpenAiReasonerReasoningEffort]; diff --git a/src/api/types/OpenAiSpeaker.ts b/src/api/types/OpenAiSpeaker.ts new file mode 100644 index 00000000..86ce04a2 --- /dev/null +++ b/src/api/types/OpenAiSpeaker.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface OpenAiSpeaker { + /** Omit to use model.systemPrompt, or system-role messages when systemPrompt is absent. An explicit empty string is preserved. */ + instructions?: string | undefined; + /** Personality packs append speaking-style guidance to the speaker prompt. Set to an array of pack IDs and test one pack at a time. These are prompt instructions, not fixed speed controls. */ + personalityPacks?: Vapi.OpenAiSpeakerPersonalityPacksItem[] | undefined; +} diff --git a/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts b/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts new file mode 100644 index 00000000..b3ea0d4d --- /dev/null +++ b/src/api/types/OpenAiSpeakerPersonalityPacksItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OpenAiSpeakerPersonalityPacksItem = { + EagerListener: "eager-listener", + IdleHummer: "idle-hummer", + Bouncy: "bouncy", + Unhurried: "unhurried", +} as const; +export type OpenAiSpeakerPersonalityPacksItem = + (typeof OpenAiSpeakerPersonalityPacksItem)[keyof typeof OpenAiSpeakerPersonalityPacksItem]; diff --git a/src/api/types/OpenAiVoice.ts b/src/api/types/OpenAiVoice.ts index f593e657..c86932d7 100644 --- a/src/api/types/OpenAiVoice.ts +++ b/src/api/types/OpenAiVoice.ts @@ -8,11 +8,7 @@ import type * as Vapi from "../index.js"; export interface OpenAiVoice { /** This is the flag to toggle voice caching for the assistant. */ cachingEnabled?: boolean | undefined; - /** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. - */ - voiceId: Vapi.OpenAiVoiceId; + voiceId?: unknown | undefined; /** This is the model that will be used for text-to-speech. */ model?: Vapi.OpenAiVoiceModel | undefined; /** diff --git a/src/api/types/OpenAiVoiceId.ts b/src/api/types/OpenAiVoiceId.ts deleted file mode 100644 index 9db8b87c..00000000 --- a/src/api/types/OpenAiVoiceId.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Vapi from "../index.js"; - -/** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime or GPT-Live models. - */ -export type OpenAiVoiceId = Vapi.OpenAiVoiceIdEnum | string; diff --git a/src/api/types/OpenAiVoiceIdEnum.ts b/src/api/types/OpenAiVoiceIdEnum.ts deleted file mode 100644 index 528e1f25..00000000 --- a/src/api/types/OpenAiVoiceIdEnum.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OpenAiVoiceIdEnum = { - Alloy: "alloy", - Echo: "echo", - Fable: "fable", - Onyx: "onyx", - Nova: "nova", - Shimmer: "shimmer", - Marin: "marin", - Cedar: "cedar", -} as const; -export type OpenAiVoiceIdEnum = (typeof OpenAiVoiceIdEnum)[keyof typeof OpenAiVoiceIdEnum]; diff --git a/src/api/types/OrgApiLimitsDto.ts b/src/api/types/OrgApiLimitsDto.ts new file mode 100644 index 00000000..edd1a5ab --- /dev/null +++ b/src/api/types/OrgApiLimitsDto.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface OrgApiLimitsDto { + /** Approximate number of API requests counted against the rate limit in the current minute, in the region that served this request. The count lives in a tumbling one-minute window aligned to the UTC clock (unix seconds / 60), so it resets to zero at the top of every minute; there is no reset header — the next boundary is (floor(now / 60) + 1) * 60. */ + rateLimitUsage: number; + /** Maximum number of standard API requests allowed per minute, in the region that served this request. Live call media traffic is limited separately and is not reflected here. */ + rateLimitMax: number; +} diff --git a/src/api/types/OrgConcurrencyLimitsDto.ts b/src/api/types/OrgConcurrencyLimitsDto.ts new file mode 100644 index 00000000..26e1845f --- /dev/null +++ b/src/api/types/OrgConcurrencyLimitsDto.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface OrgConcurrencyLimitsDto { + /** True when the org is at or over its concurrency limit at the time of the read. This is a status read, not an admission decision: no call was evaluated and no slot is reserved. */ + concurrencyBlocked: boolean; + /** Maximum number of concurrent calls the subscription allows, at the time of the read. Computed as the subscription's included plus purchased concurrency, defaulting to the initial allowance when either is unset; call create derives its own figure and can differ for subscriptions with an unset allowance. */ + concurrencyLimit: number; + /** Plain concurrent-call headroom at the time of the read, floored at zero. Unlike the call create response, this does not include or reserve a slot for a new call. */ + remainingConcurrentCalls: number; +} diff --git a/src/api/types/OrgLimitsResponseDto.ts b/src/api/types/OrgLimitsResponseDto.ts new file mode 100644 index 00000000..bb35ec1b --- /dev/null +++ b/src/api/types/OrgLimitsResponseDto.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface OrgLimitsResponseDto { + /** Call concurrency limits for the subscription. Unlike the call create response, remainingConcurrentCalls does not reserve a slot for a new call: it is the plain headroom at the time of the read. Covers the concurrency gate only — credits, frozen subscriptions, included minutes, and the billing limit are not reflected here, so call create can still refuse. Omitted when the limits could not be computed, and for an org with no subscription at all (legacy ungated orgs), which has no concurrency ceiling. */ + subscriptionLimits?: Vapi.OrgConcurrencyLimitsDto | undefined; + /** API rate limit usage for the org. Approximate, per region, and scoped to the current minute. Omitted when the limit information is unavailable. */ + apiLimits?: Vapi.OrgApiLimitsDto | undefined; +} diff --git a/src/api/types/RimeAiVoiceId.ts b/src/api/types/RimeAiVoiceId.ts index 2b81a63b..983e1919 100644 --- a/src/api/types/RimeAiVoiceId.ts +++ b/src/api/types/RimeAiVoiceId.ts @@ -7,7 +7,7 @@ import type * as Vapi from "../index.js"; */ export type RimeAiVoiceId = /** - * Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ + * Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ | Vapi.RimeAiVoiceIdEnum /** * Any valid Rime AI voice ID. See https://docs.rime.ai/docs/voices for the full catalog. */ diff --git a/src/api/types/RimeAiVoiceIdEnum.ts b/src/api/types/RimeAiVoiceIdEnum.ts index 21ed81f3..b47951e2 100644 --- a/src/api/types/RimeAiVoiceIdEnum.ts +++ b/src/api/types/RimeAiVoiceIdEnum.ts @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -/** Popular Rime AI voices across mist, mistv2, and arcana models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ +/** Popular Rime AI voices across mist, mistv2, mistv3, arcana, and coda models. Any valid Rime AI voice ID is accepted, not just these suggestions. */ export const RimeAiVoiceIdEnum = { Cove: "cove", Moon: "moon", @@ -52,5 +52,12 @@ export const RimeAiVoiceIdEnum = { Masonry: "masonry", Albion: "albion", Parapet: "parapet", + Clementine: "clementine", + Walnut: "walnut", + Eyre: "eyre", + Bancroft: "bancroft", + Hesse: "hesse", + Beatty: "beatty", + Godfrey: "godfrey", } as const; export type RimeAiVoiceIdEnum = (typeof RimeAiVoiceIdEnum)[keyof typeof RimeAiVoiceIdEnum]; diff --git a/src/api/types/RimeAiVoiceModel.ts b/src/api/types/RimeAiVoiceModel.ts index 12fd07e1..1ffcd792 100644 --- a/src/api/types/RimeAiVoiceModel.ts +++ b/src/api/types/RimeAiVoiceModel.ts @@ -3,7 +3,9 @@ /** This is the model that will be used. Defaults to 'arcana' when not specified. */ export const RimeAiVoiceModel = { Arcana: "arcana", + Coda: "coda", Mistv2: "mistv2", + Mistv3: "mistv3", Mist: "mist", } as const; export type RimeAiVoiceModel = (typeof RimeAiVoiceModel)[keyof typeof RimeAiVoiceModel]; diff --git a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts index 0d5d03c9..2ebe5493 100644 --- a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts +++ b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts @@ -28,6 +28,7 @@ export const ServerMessageEndOfCallReportEndedReason = { CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: "call.start.error-enterprise-feature-not-available-recording-consent", CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation", + CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation", AssistantNotValid: "assistant-not-valid", CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", AssistantNotFound: "assistant-not-found", diff --git a/src/api/types/ServerMessageStatusUpdateEndedReason.ts b/src/api/types/ServerMessageStatusUpdateEndedReason.ts index 109d90e4..067c7a46 100644 --- a/src/api/types/ServerMessageStatusUpdateEndedReason.ts +++ b/src/api/types/ServerMessageStatusUpdateEndedReason.ts @@ -28,6 +28,7 @@ export const ServerMessageStatusUpdateEndedReason = { CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: "call.start.error-enterprise-feature-not-available-recording-consent", CallStartAssistantVersionErrorValidation: "call.start.assistant-version-error-validation", + CallStartSquadVersionErrorValidation: "call.start.squad-version-error-validation", AssistantNotValid: "assistant-not-valid", CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", AssistantNotFound: "assistant-not-found", diff --git a/src/api/types/Squad.ts b/src/api/types/Squad.ts index 0df83e44..40df77cd 100644 --- a/src/api/types/Squad.ts +++ b/src/api/types/Squad.ts @@ -6,6 +6,14 @@ import type * as Vapi from "../index.js"; * A saved squad configuration that coordinates a group of assistants during a conversation. The first member starts the call, and member destinations control transfers between assistants. */ export interface Squad { + /** + * This is the latest version label (e.g. `v3`) of the squad in the version + * history. `null` while the org is not yet onboarded to versioning, or for + * squads that have not yet been published under it. + */ + latestVersion?: (string | null) | undefined; + /** Read-only. Present only when a model this configuration uses is deprecated or retired in Vapi's model deprecation registry, judged on the day of the response. Each entry names the slot that carries the model (for example `model` or `model.fallbackModels[1]`), the deprecation and retirement dates as `YYYY-MM-DD` in UTC, and the recommended replacement model: the registry's replacement, followed through any further retirements as of the response date, so it names a model that is alive on that day. Ignored if sent back in a create or update request. */ + modelDeprecations?: Vapi.ModelDeprecationNotice[] | undefined; /** This is the name of the squad. */ name?: string | undefined; /** diff --git a/src/api/types/SquadVersion.ts b/src/api/types/SquadVersion.ts new file mode 100644 index 00000000..a9dabacd --- /dev/null +++ b/src/api/types/SquadVersion.ts @@ -0,0 +1,50 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface SquadVersion { + /** Optional human-readable label for this version. Set when the version is published. */ + versionName?: (string | null) | undefined; + /** Optional description for this version. Set when the version is published. */ + versionDescription?: (string | null) | undefined; + /** This is the unique identifier for the version row. */ + id: string; + /** This is the unique identifier for the org that owns this version. */ + orgId: string; + /** This is the unique identifier for the squad this version was snapshotted from. */ + squadId: string; + /** + * This is the public monotonic version label, e.g. "v1". + * System-owned and incremented per squad; never user-supplied. + */ + version: string; + /** This is the SHA-256 hex of the snapshotted content used for no-op detection. */ + configHash: string; + /** This is the prior version label (vN-1). Null on v1 or for branch roots. */ + parentVersion?: (string | null) | undefined; + /** The version this version was restored from. Null when it was not restored. */ + restoredFromVersion?: (string | null) | undefined; + /** + * This is the actor that wrote this version. Email when created via JWT; null + * when created via API key, and null for a baseline version authored by nobody. + */ + createdBy?: (string | null) | undefined; + /** This is the soft-delete timestamp. Null when active. */ + deletedAt?: (string | null) | undefined; + /** This is the ISO 8601 date-time string of when the version was created. */ + createdAt: string; + /** This is the name of the squad. */ + name?: string | undefined; + /** + * This is the list of assistants that make up the squad. + * + * The call will start with the first assistant in the list. + */ + members: Vapi.SquadMemberDto[]; + /** + * This can be used to override all the assistants' settings and provide values for their template variables. + * + * Both `membersOverrides` and `members[n].assistantOverrides` can be used together. First, `members[n].assistantOverrides` is applied. Then, `membersOverrides` is applied as a global override. + */ + membersOverrides?: Vapi.AssistantOverrides | undefined; +} diff --git a/src/api/types/SquadVersionPaginatedMetadata.ts b/src/api/types/SquadVersionPaginatedMetadata.ts new file mode 100644 index 00000000..a4a7e3db --- /dev/null +++ b/src/api/types/SquadVersionPaginatedMetadata.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface SquadVersionPaginatedMetadata { + nextCursor?: (string | null) | undefined; + hasNextPage: boolean; + limit: number; +} diff --git a/src/api/types/SquadVersionPaginatedResponse.ts b/src/api/types/SquadVersionPaginatedResponse.ts new file mode 100644 index 00000000..5bfc2209 --- /dev/null +++ b/src/api/types/SquadVersionPaginatedResponse.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface SquadVersionPaginatedResponse { + results: Vapi.SquadVersion[]; + metadata: Vapi.SquadVersionPaginatedMetadata; +} diff --git a/src/api/types/StructuredOutput.ts b/src/api/types/StructuredOutput.ts index 70465476..0b29d45e 100644 --- a/src/api/types/StructuredOutput.ts +++ b/src/api/types/StructuredOutput.ts @@ -16,6 +16,15 @@ export interface StructuredOutput { /** * This is the regex pattern to match against the transcript. * + * Simulation evaluations use a canonical transcript built from recorded messages: + * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and + * AI: tool_call_results: JSON results. System messages are excluded. These + * fixed labels apply even when custom artifact transcript labels are configured. + * Tool payloads participate in first-match and all-match extraction in event order. + * An empty message array falls back to the supplied transcript verbatim. + * Production-call extraction and call preview use their existing transcripts, + * so previewing the same output on a simulation's call can return a different result. + * * Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and * regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety. * diff --git a/src/api/types/ToolPinnedConflictResponseDto.ts b/src/api/types/ToolPinnedConflictResponseDto.ts index 03018545..4bc6b003 100644 --- a/src/api/types/ToolPinnedConflictResponseDto.ts +++ b/src/api/types/ToolPinnedConflictResponseDto.ts @@ -1,9 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -import type * as Vapi from "../index.js"; - export interface ToolPinnedConflictResponseDto { - error: Vapi.ToolPinnedConflictResponseDtoError; /** Human-readable reason the parent-tool delete was rejected. */ message: string; } diff --git a/src/api/types/ToolPinnedConflictResponseDtoError.ts b/src/api/types/ToolPinnedConflictResponseDtoError.ts deleted file mode 100644 index bc8430f9..00000000 --- a/src/api/types/ToolPinnedConflictResponseDtoError.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ToolPinnedConflictResponseDtoError = { - ToolPinned: "tool_pinned", -} as const; -export type ToolPinnedConflictResponseDtoError = - (typeof ToolPinnedConflictResponseDtoError)[keyof typeof ToolPinnedConflictResponseDtoError]; diff --git a/src/api/types/ToolWriteConflictResponseDto.ts b/src/api/types/ToolWriteConflictResponseDto.ts new file mode 100644 index 00000000..1209ec6c --- /dev/null +++ b/src/api/types/ToolWriteConflictResponseDto.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Vapi from "../index.js"; + +export interface ToolWriteConflictResponseDto { + error: Vapi.ToolWriteConflictResponseDtoError; + /** Human-readable reason the tool write was rejected. */ + message: string; +} diff --git a/src/api/types/ToolWriteConflictResponseDtoError.ts b/src/api/types/ToolWriteConflictResponseDtoError.ts new file mode 100644 index 00000000..ce845d78 --- /dev/null +++ b/src/api/types/ToolWriteConflictResponseDtoError.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ToolWriteConflictResponseDtoError = { + ToolWriteConflict: "tool_write_conflict", +} as const; +export type ToolWriteConflictResponseDtoError = + (typeof ToolWriteConflictResponseDtoError)[keyof typeof ToolWriteConflictResponseDtoError]; diff --git a/src/api/types/UpdateUserRoleDtoRoleZero.ts b/src/api/types/UpdateUserRoleDtoRoleZero.ts index d92a69f4..e0fb3f90 100644 --- a/src/api/types/UpdateUserRoleDtoRoleZero.ts +++ b/src/api/types/UpdateUserRoleDtoRoleZero.ts @@ -4,5 +4,6 @@ export const UpdateUserRoleDtoRoleZero = { Admin: "admin", Editor: "editor", Viewer: "viewer", + HipaaSpecial: "hipaa-special", } as const; export type UpdateUserRoleDtoRoleZero = (typeof UpdateUserRoleDtoRoleZero)[keyof typeof UpdateUserRoleDtoRoleZero]; diff --git a/src/api/types/VapiWebsocketTransport.ts b/src/api/types/VapiWebsocketTransport.ts index 0f53f5ca..1c3ac292 100644 --- a/src/api/types/VapiWebsocketTransport.ts +++ b/src/api/types/VapiWebsocketTransport.ts @@ -5,6 +5,12 @@ import type * as Vapi from "../index.js"; export interface VapiWebsocketTransport { /** This is the conversation type of the call (ie, voice or chat). */ conversationType?: Vapi.VapiWebsocketTransportConversationType | undefined; - /** This is the audio format of the call. Defaults to 16KHz raw pcm_s16le */ + /** + * This is the audio format of the call. Defaults to 16KHz raw pcm_s16le. + * + * For GPT-Live calls using Vapi's custom WebSocket transport, explicitly set + * `{ format: pcm_s16le, sampleRate: 24000 }`. This requirement is specific + * to Vapi's WebSocket transport and does not apply to phone or web calls. + */ audioFormat?: Vapi.AudioFormat | undefined; } diff --git a/src/api/types/VersionPinReferenceSourceType.ts b/src/api/types/VersionPinReferenceSourceType.ts index da317824..32c8a9d1 100644 --- a/src/api/types/VersionPinReferenceSourceType.ts +++ b/src/api/types/VersionPinReferenceSourceType.ts @@ -4,6 +4,7 @@ export const VersionPinReferenceSourceType = { AssistantVersion: "assistant_version", Squad: "squad", + SquadVersion: "squad_version", ToolVersion: "tool_version", } as const; export type VersionPinReferenceSourceType = diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 4c95df43..aceec5f8 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -18,6 +18,7 @@ export * from "./AnthropicBedrockCredentialAuthenticationPlan.js"; export * from "./AnthropicBedrockCredentialProvider.js"; export * from "./AnthropicBedrockCredentialRegion.js"; export * from "./AnthropicBedrockModel.js"; +export * from "./AnthropicBedrockModelFallbackModelsItem.js"; export * from "./AnthropicBedrockModelModel.js"; export * from "./AnthropicBedrockModelToolsItem.js"; export * from "./AnthropicCredential.js"; @@ -125,6 +126,7 @@ export * from "./AssistantVoicemailDetection.js"; export * from "./AssistantVoicemailDetectionZero.js"; export * from "./AudioFormat.js"; export * from "./AudioFormatContainer.js"; +export * from "./AudioFormatFormat.js"; export * from "./AutoReloadPlan.js"; export * from "./AwsiamCredentialsAuthenticationPlan.js"; export * from "./AwsStsAssumeRoleUser.js"; @@ -394,6 +396,7 @@ export * from "./ComputerToolWithToolCallName.js"; export * from "./ComputerToolWithToolCallSubType.js"; export * from "./Condition.js"; export * from "./ConditionOperator.js"; +export * from "./ConflictErrorBody.js"; export * from "./ContextEngineeringPlanAll.js"; export * from "./ContextEngineeringPlanLastNMessages.js"; export * from "./ContextEngineeringPlanNone.js"; @@ -845,8 +848,6 @@ export * from "./FallbackOpenAiTranscriber.js"; export * from "./FallbackOpenAiTranscriberLanguage.js"; export * from "./FallbackOpenAiTranscriberModel.js"; export * from "./FallbackOpenAiVoice.js"; -export * from "./FallbackOpenAiVoiceId.js"; -export * from "./FallbackOpenAiVoiceIdEnum.js"; export * from "./FallbackOpenAiVoiceModel.js"; export * from "./FallbackPlan.js"; export * from "./FallbackPlanVoicesItem.js"; @@ -898,6 +899,7 @@ export * from "./FallbackXaiVoiceLanguage.js"; export * from "./FallbackXaiVoiceVoiceId.js"; export * from "./File_.js"; export * from "./FileObject.js"; +export * from "./FilePaginatedResponse.js"; export * from "./FileStatus.js"; export * from "./FilterDateTypeColumnOnCallTable.js"; export * from "./FilterDateTypeColumnOnCallTableColumn.js"; @@ -1193,6 +1195,7 @@ export * from "./MinMessagesCondition.js"; export * from "./MistralCredential.js"; export * from "./MistralCredentialProvider.js"; export * from "./ModelCost.js"; +export * from "./ModelDeprecationNotice.js"; export * from "./Monitor.js"; export * from "./MonitorPlan.js"; export * from "./MonitorResult.js"; @@ -1222,14 +1225,19 @@ export * from "./OpenAiModelFallbackModelsItem.js"; export * from "./OpenAiModelModel.js"; export * from "./OpenAiModelPromptCacheRetention.js"; export * from "./OpenAiModelReasoningEffort.js"; +export * from "./OpenAiModelServiceTier.js"; export * from "./OpenAiModelToolStrictCompatibilityMode.js"; export * from "./OpenAiModelToolsItem.js"; +export * from "./OpenAiReasoner.js"; +export * from "./OpenAiReasonerModel.js"; +export * from "./OpenAiReasonerProvider.js"; +export * from "./OpenAiReasonerReasoningEffort.js"; +export * from "./OpenAiSpeaker.js"; +export * from "./OpenAiSpeakerPersonalityPacksItem.js"; export * from "./OpenAiTranscriber.js"; export * from "./OpenAiTranscriberLanguage.js"; export * from "./OpenAiTranscriberModel.js"; export * from "./OpenAiVoice.js"; -export * from "./OpenAiVoiceId.js"; -export * from "./OpenAiVoiceIdEnum.js"; export * from "./OpenAiVoiceModel.js"; export * from "./OpenAiVoicemailDetectionPlan.js"; export * from "./OpenAiVoicemailDetectionPlanProvider.js"; @@ -1242,7 +1250,10 @@ export * from "./OpenRouterCredentialProvider.js"; export * from "./OpenRouterModel.js"; export * from "./OpenRouterModelToolsItem.js"; export * from "./Org.js"; +export * from "./OrgApiLimitsDto.js"; export * from "./OrgChannel.js"; +export * from "./OrgConcurrencyLimitsDto.js"; +export * from "./OrgLimitsResponseDto.js"; export * from "./OutputTool.js"; export * from "./OutputToolMessagesItem.js"; export * from "./OutputToolType.js"; @@ -1602,6 +1613,9 @@ export * from "./SqlInjectionSecurityFilterType.js"; export * from "./Squad.js"; export * from "./SquadMemberDto.js"; export * from "./SquadMemberDtoAssistantDestinationsItem.js"; +export * from "./SquadVersion.js"; +export * from "./SquadVersionPaginatedMetadata.js"; +export * from "./SquadVersionPaginatedResponse.js"; export * from "./SsrfSecurityFilter.js"; export * from "./SsrfSecurityFilterType.js"; export * from "./StartSpeakingPlan.js"; @@ -1743,7 +1757,6 @@ export * from "./ToolNodeTool.js"; export * from "./ToolParameter.js"; export * from "./ToolParameterValue.js"; export * from "./ToolPinnedConflictResponseDto.js"; -export * from "./ToolPinnedConflictResponseDtoError.js"; export * from "./ToolRef.js"; export * from "./ToolRejectionPlan.js"; export * from "./ToolRejectionPlanConditionsItem.js"; @@ -1752,6 +1765,8 @@ export * from "./ToolTemplateSetup.js"; export * from "./ToolVersion.js"; export * from "./ToolVersionPaginatedMetadata.js"; export * from "./ToolVersionPaginatedResponse.js"; +export * from "./ToolWriteConflictResponseDto.js"; +export * from "./ToolWriteConflictResponseDtoError.js"; export * from "./TranscriberCost.js"; export * from "./TranscriptionEndpointingPlan.js"; export * from "./TranscriptPlan.js"; diff --git a/src/version.ts b/src/version.ts index 85cbd4ff..f29e2e55 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.1"; +export const SDK_VERSION = "3.0.0"; diff --git a/tests/wire/assistants.test.ts b/tests/wire/assistants.test.ts index 644f50a4..2c92ec75 100644 --- a/tests/wire/assistants.test.ts +++ b/tests/wire/assistants.test.ts @@ -23,6 +23,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -246,6 +247,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -472,6 +483,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -771,6 +783,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -1054,6 +1076,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -1263,6 +1286,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -1518,6 +1551,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -1827,6 +1861,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -2181,6 +2225,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -2390,6 +2435,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -2640,6 +2695,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -2949,6 +3005,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -3277,6 +3343,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3486,6 +3553,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -3736,6 +3813,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4045,6 +4123,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -4388,6 +4476,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4597,6 +4686,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", @@ -4854,6 +4953,7 @@ describe("AssistantsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5163,6 +5263,16 @@ describe("AssistantsClient", () => { }, ], latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", voicemailMessage: "voicemailMessage", endCallMessage: "endCallMessage", diff --git a/tests/wire/calls.test.ts b/tests/wire/calls.test.ts index 1581268c..73e139d5 100644 --- a/tests/wire/calls.test.ts +++ b/tests/wire/calls.test.ts @@ -10,7 +10,7 @@ describe("CallsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = [ { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "model" : "gpt-5.6-sol" } , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "number" : "number" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } } ]; + const rawResponseBody = [ { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "model" : "gpt-5.6-sol" } , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "number" : "number" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } } ]; server .mockEndpoint() @@ -53,14 +53,13 @@ describe("CallsClient", () => { description: "description" }, assistantVersion: "assistantVersion", + squadVersion: "squadVersion", transport: { provider: "vapi.websocket", conversationType: "voice", audioFormat: { sampleRate: 1.1, - format: { - "key": "value" - } + format: "pcm_s16le" } }, id: "id", @@ -3256,7 +3255,7 @@ describe("CallsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { }; - const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -3326,14 +3325,13 @@ describe("CallsClient", () => { description: "description" }, assistantVersion: "assistantVersion", + squadVersion: "squadVersion", transport: { provider: "vapi.websocket", conversationType: "voice", audioFormat: { sampleRate: 1.1, - format: { - "key": "value" - }, + format: "pcm_s16le", container: "raw" } }, @@ -3532,6 +3530,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3911,6 +3910,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5317,6 +5317,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5836,6 +5837,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -6935,7 +6937,7 @@ describe("CallsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -7006,14 +7008,13 @@ describe("CallsClient", () => { description: "description" }, assistantVersion: "assistantVersion", + squadVersion: "squadVersion", transport: { provider: "vapi.websocket", conversationType: "voice", audioFormat: { sampleRate: 1.1, - format: { - "key": "value" - }, + format: "pcm_s16le", container: "raw" } }, @@ -7212,6 +7213,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7591,6 +7593,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -8997,6 +9000,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -9516,6 +9520,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -10577,7 +10582,7 @@ describe("CallsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { }; - const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -10649,14 +10654,13 @@ describe("CallsClient", () => { description: "description" }, assistantVersion: "assistantVersion", + squadVersion: "squadVersion", transport: { provider: "vapi.websocket", conversationType: "voice", audioFormat: { sampleRate: 1.1, - format: { - "key": "value" - }, + format: "pcm_s16le", container: "raw" } }, @@ -10855,6 +10859,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -11234,6 +11239,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -12640,6 +12646,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -13159,6 +13166,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -14241,7 +14249,7 @@ describe("CallsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { }; - const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : { "key" : "value" } , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; + const rawResponseBody = { "type" : "inboundPhoneCall" , "costs" : [ { "type" : "transport" , "provider" : "daily" , "minutes" : 1.1 , "cost" : 1.1 } ] , "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 , "duration" : 1.1 , "isFiltered" : true , "detectedThreats" : [ "detectedThreats" ] , "originalMessage" : "originalMessage" , "metadata" : { "key" : "value" } , "speakerLabel" : "speakerLabel" } ] , "phoneCallTransport" : "sip" , "status" : "scheduled" , "endedReason" : "call-start-error-neither-assistant-nor-server-set" , "endedMessage" : "endedMessage" , "destination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" , "message" : "message" , "timeout" : 1.1 , "sipVerb" : { "key" : "value" } , "dialTimeout" : 1.1 , "holdAudioUrl" : "holdAudioUrl" , "transferCompleteAudioUrl" : "transferCompleteAudioUrl" , "contextEngineeringPlan" : { "type" : "lastNMessages" , "maxMessages" : 1.1 } , "twiml" : "twiml" , "sipHeadersInReferToEnabled" : true , "fallbackPlan" : { "message" : "message" } } , "name" : "name" , "description" : "description" } , "assistantVersion" : "assistantVersion" , "squadVersion" : "squadVersion" , "transport" : { "provider" : "vapi.websocket" , "conversationType" : "voice" , "audioFormat" : { "sampleRate" : 1.1 , "format" : "pcm_s16le" , "container" : "raw" } } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "startedAt" : "2024-01-15T09:30:00Z" , "endedAt" : "2024-01-15T09:30:00Z" , "cost" : 1.1 , "costBreakdown" : { "transport" : 1.1 , "stt" : 1.1 , "llm" : 1.1 , "tts" : 1.1 , "vapi" : 1.1 , "chat" : 1.1 , "total" : 1.1 , "llmPromptTokens" : 1.1 , "llmCompletionTokens" : 1.1 , "llmCachedPromptTokens" : 1.1 , "ttsCharacters" : 1.1 , "analysisCostBreakdown" : { "summary" : 1.1 , "summaryPromptTokens" : 1.1 , "summaryCompletionTokens" : 1.1 , "summaryCachedPromptTokens" : 1.1 , "structuredData" : 1.1 , "structuredDataPromptTokens" : 1.1 , "structuredDataCompletionTokens" : 1.1 , "structuredDataCachedPromptTokens" : 1.1 , "successEvaluation" : 1.1 , "successEvaluationPromptTokens" : 1.1 , "successEvaluationCompletionTokens" : 1.1 , "successEvaluationCachedPromptTokens" : 1.1 , "structuredOutput" : 1.1 , "structuredOutputPromptTokens" : 1.1 , "structuredOutputCompletionTokens" : 1.1 , "structuredOutputCachedPromptTokens" : 1.1 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true , "assistantName" : "assistantName" , "userName" : "userName" } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "analysis" : { "summary" : "summary" , "structuredData" : { "key" : "value" } , "structuredDataMulti" : [ { "key" : "value" } ] , "successEvaluation" : "successEvaluation" } , "monitor" : { "monitors" : [ { "monitorId" : "monitorId" , "filterPassed" : true } ] , "listenUrl" : "listenUrl" , "controlUrl" : "controlUrl" } , "artifact" : { "messages" : [ { "role" : "role" , "message" : "message" , "time" : 1.1 , "endTime" : 1.1 , "secondsFromStart" : 1.1 } ] , "messagesOpenAIFormatted" : [ { "content" : null , "role" : "assistant" } ] , "skippedStructuredOutputs" : { "key" : { "name" : "name" , "unmetCondition" : { "type" : "minMessages" , "count" : 4 } } } , "transfers" : [ { "destination" : { "type" : "number" , "number" : "number" } } ] , "recording" : { "stereoUrl" : "stereoUrl" , "videoUrl" : "videoUrl" , "videoRecordingStartDelaySeconds" : 1.1 } , "transcript" : "transcript" , "pcapUrl" : "pcapUrl" , "logUrl" : "logUrl" , "nodes" : [ { } ] , "assistantActivations" : [ { "assistantName" : "assistantName" } ] , "variableValues" : { "key" : "value" } , "performanceMetrics" : { "turnLatencies" : [ { } ] , "modelLatencyAverage" : 1.1 , "voiceLatencyAverage" : 1.1 , "transcriberLatencyAverage" : 1.1 , "endpointingLatencyAverage" : 1.1 , "turnLatencyAverage" : 1.1 , "fromTransportLatencyAverage" : 1.1 , "toTransportLatencyAverage" : 1.1 , "numUserInterrupted" : 1.1 , "numAssistantInterrupted" : 1.1 } , "structuredOutputs" : { "key" : "value" } , "scorecards" : { "key" : "value" } , "structuredOutputsLastUpdatedAt" : "2024-01-15T09:30:00Z" , "presignedMonoUrl" : "presignedMonoUrl" , "presignedStereoUrl" : "presignedStereoUrl" , "presignedVideoUrl" : "presignedVideoUrl" , "presignedAssistantUrl" : "presignedAssistantUrl" , "presignedCustomerUrl" : "presignedCustomerUrl" , "presignedPcapUrl" : "presignedPcapUrl" , "presignedLogUrl" : "presignedLogUrl" , "presignedUrlsExpiresAt" : "presignedUrlsExpiresAt" } , "compliance" : { "recordingConsent" : { "type" : "stay-on-line" , "grantedAt" : "2024-01-15T09:30:00Z" } } , "campaignId" : "campaignId" , "assistantId" : "assistantId" , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadId" : "squadId" , "squad" : { "name" : "name" , "members" : [ { "assistantDestinations" : [ { "type" : "assistant" , "assistantName" : "assistantName" } ] , "assistant" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] , "membersOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "workflowId" : "workflowId" , "workflow" : { "nodes" : [ { "type" : "conversation" , "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "name" : "name" } ] , "model" : { "provider" : "openai" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "model" : "gpt-5.6-sol" , "temperature" : 1.1 , "maxTokens" : 1.1 } , "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "backgroundSound" : "https://example.com/my-sound.mp3" , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "voicemailDetection" : "off" , "maxDurationSeconds" : 600 , "name" : "name" , "edges" : [ { "from" : "from" , "to" : "to" } ] , "globalPrompt" : "globalPrompt" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "credentialIds" : [ "credentialIds" ] , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } , "voicemailMessage" : "voicemailMessage" } , "workflowOverrides" : { "variableValues" : { "key" : "value" } } , "phoneNumberId" : "phoneNumberId" , "phoneNumber" : { "fallbackDestination" : { "type" : "number" , "message" : "message" , "numberE164CheckEnabled" : true , "number" : "number" , "extension" : "extension" , "callerId" : "callerId" , "transferPlan" : { "mode" : "blind-transfer" } , "name" : "name" , "description" : "description" } , "hooks" : [ { "on" : "call.ringing" , "do" : [ { "type" : "transfer" } ] } ] , "smsEnabled" : true , "twilioPhoneNumber" : "twilioPhoneNumber" , "twilioAccountSid" : "twilioAccountSid" , "twilioAuthToken" : "twilioAuthToken" , "twilioApiKey" : "twilioApiKey" , "twilioApiSecret" : "twilioApiSecret" , "name" : "name" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "customerId" : "customerId" , "customer" : { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "tags" : [ "tags" ] } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } , "name" : "name" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } }; server .mockEndpoint() @@ -14313,14 +14321,13 @@ describe("CallsClient", () => { description: "description" }, assistantVersion: "assistantVersion", + squadVersion: "squadVersion", transport: { provider: "vapi.websocket", conversationType: "voice", audioFormat: { sampleRate: 1.1, - format: { - "key": "value" - }, + format: "pcm_s16le", container: "raw" } }, @@ -14519,6 +14526,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -14898,6 +14906,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -16304,6 +16313,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -16823,6 +16833,7 @@ describe("CallsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/campaigns.test.ts b/tests/wire/campaigns.test.ts index 843caa51..d59e72e0 100644 --- a/tests/wire/campaigns.test.ts +++ b/tests/wire/campaigns.test.ts @@ -2088,7 +2088,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { "name" : "Q2 Sales Campaign" }; - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -3470,6 +3470,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3888,6 +3889,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5091,7 +5093,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { "name" : "Q2 Sales Campaign" }; - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -6473,6 +6475,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -6891,6 +6894,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7347,7 +7351,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "contactCounters" : { "pending" : 1.1 , "dispatched" : 1.1 , "completed" : 1.1 , "failed" : 1.1 , "skipped" : 1.1 , "predialFailed" : 1.1 } , "callMetrics" : { "dialed" : 1.1 , "connected" : 1.1 } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "contactCounters" : { "pending" : 1.1 , "dispatched" : 1.1 , "completed" : 1.1 , "failed" : 1.1 , "skipped" : 1.1 , "predialFailed" : 1.1 } , "callMetrics" : { "dialed" : 1.1 , "connected" : 1.1 } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" }; server .mockEndpoint() @@ -7385,6 +7389,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7803,6 +7808,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -8263,7 +8269,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -9644,6 +9650,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -10062,6 +10069,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -10518,7 +10526,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { }; - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -11901,6 +11909,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -12319,6 +12328,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -12775,7 +12785,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -14156,6 +14166,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -14574,6 +14585,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -15030,7 +15042,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -16411,6 +16423,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -16829,6 +16842,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -17285,7 +17299,7 @@ describe("CampaignsClient", () => { const server = mockServerPool.createServer(); const client = new VapiClient({ "maxRetries" : 0 , "token" : "test" , "environment" : server.baseUrl }); const rawRequestBody = { }; - const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; + const rawResponseBody = { "status" : "scheduled" , "endedReason" : "campaign.scheduled.ended-by-user" , "name" : "Q2 Sales Campaign" , "assistantId" : "assistantId" , "workflowId" : "workflowId" , "squadId" : "squadId" , "phoneNumberId" : "phoneNumberId" , "dialPlan" : [ { "phoneNumberId" : "phoneNumberId" , "customers" : [ { "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } } ] } ] , "schedulePlan" : { "earliestAt" : "2024-01-15T09:30:00Z" , "latestAt" : "2024-01-15T09:30:00Z" } , "customers" : [ { "numberE164CheckEnabled" : true , "extension" : "extension" , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "compliancePlan" : { "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "number" : "number" , "sipUri" : "sipUri" , "name" : "name" , "email" : "email" , "externalId" : "externalId" } ] , "maxConcurrency" : 1.1 , "assistantOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "squadOverrides" : { "transcriber" : { "provider" : "assembly-ai" , "language" : "multi" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true , "mode" : "max_accuracy" , "prompt" : "prompt" , "agentContext" : "agentContext" , "agentContextAutoUpdateEnabled" : true , "languageCodes" : [ "en" ] , "speechModel" : "universal-streaming-english" , "realtimeUrl" : "realtimeUrl" , "wordBoost" : [ "wordBoost" ] , "keytermsPrompt" : [ "keytermsPrompt" ] , "endUtteranceSilenceThreshold" : 1.1 , "disablePartialTranscripts" : true , "fallbackPlan" : { "transcribers" : [ { "provider" : "assembly-ai" , "confidenceThreshold" : 0.4 , "formatTurns" : true , "endOfTurnConfidenceThreshold" : 0.7 , "minEndOfTurnSilenceWhenConfident" : 160 , "maxTurnSilence" : 400 , "vadAssistedEndpointingEnabled" : true } ] } } , "model" : { "provider" : "anthropic" , "messages" : [ { "content" : null , "role" : "assistant" } ] , "tools" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "toolIds" : [ "toolIds" ] , "toolRefs" : [ { "toolId" : "toolId" , "version" : "version" } ] , "knowledgeBase" : { "provider" : "custom-knowledge-base" , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } } , "model" : "claude-3-opus-20240229" , "thinking" : { "type" : "enabled" , "budgetTokens" : 1.1 } , "temperature" : 1.1 , "maxTokens" : 1.1 , "emotionRecognitionEnabled" : true , "numFastTurns" : 1.1 } , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "speed" : 1.1 , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "firstMessage" : "Hello! How can I help you today?" , "firstMessageInterruptionsEnabled" : true , "firstMessageMode" : "assistant-speaks-first" , "voicemailDetection" : "off" , "clientMessages" : [ "conversation-update" , "function-call" , "hang" , "model-output" , "speech-update" , "status-update" , "transfer-update" , "transcript" , "tool-calls" , "user-interrupted" , "voice-input" , "workflow.node.started" , "assistant.started" ] , "serverMessages" : [ "conversation-update" , "end-of-call-report" , "function-call" , "hang" , "speech-update" , "status-update" , "tool-calls" , "transfer-destination-request" , "handoff-destination-request" , "user-interrupted" , "assistant.started" ] , "maxDurationSeconds" : 600 , "backgroundSound" : "https://example.com/my-sound.mp3" , "modelOutputInMessagesEnabled" : false , "transportConfigurations" : [ { "provider" : "twilio" , "timeout" : 60 , "record" : false } ] , "observabilityPlan" : { "provider" : "langfuse" , "promptName" : "promptName" , "promptVersion" : 1.1 , "traceName" : "traceName" , "tags" : [ "tags" ] , "metadata" : { "key" : "value" } } , "credentials" : [ { "provider" : "11labs" , "apiKey" : "apiKey" } ] , "hooks" : [ { "on" : "call.ending" , "do" : [ { "type" : "tool" , "tool" : { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } } ] } ] , "tools:append" : [ { "type" : "apiRequest" , "messages" : [ { "type" : "request-start" , "blocking" : false } ] , "method" : "POST" , "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "url" : "url" , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } , "rejectionPlan" : { "conditions" : [ { "type" : "regex" , "regex" : "\\\\b(cancel|stop|wait)\\\\b - Matches whole words" , "target" : { "position" : -1 } } ] } } ] , "variableValues" : { "key" : "value" } , "name" : "name" , "voicemailMessage" : "voicemailMessage" , "endCallMessage" : "endCallMessage" , "endCallPhrases" : [ "endCallPhrases" ] , "compliancePlan" : { "hipaaEnabled" : true , "pciEnabled" : true , "recordingConsentPlan" : { "type" : "stay-on-line" , "message" : "For quality purposes, this call may be recorded. Please stay on the line if you agree or end the call if you do not consent." , "voice" : { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } , "fallbackPlan" : { "voices" : [ { "provider" : "azure" , "cachingEnabled" : true , "voiceId" : "andrew" , "chunkPlan" : { "enabled" : true , "minCharacters" : 30 , "punctuationBoundaries" : [ "。" , "," , "." , "!" , "?" , ";" , "،" , "۔" , "।" , "॥" , "|" , "||" , "," , ":" ] , "formatPlan" : { "enabled" : true , "numberToDigitsCutoff" : 2025 } } } ] } } , "waitSeconds" : 3 } } , "metadata" : { "key" : "value" } , "backgroundSpeechDenoisingPlan" : { "fourierDenoisingPlan" : { "mediaDetectionEnabled" : true , "staticThreshold" : -35 , "baselineOffsetDb" : -15 , "windowSizeMs" : 3000 , "baselinePercentile" : 85 } } , "artifactPlan" : { "recordingEnabled" : true , "recordingFormat" : "wav;l16" , "recordingUseCustomStorageEnabled" : true , "videoRecordingEnabled" : false , "fullMessageHistoryEnabled" : false , "pcapEnabled" : true , "pcapS3PathPrefix" : "/pcaps" , "pcapUseCustomStorageEnabled" : true , "loggingEnabled" : true , "loggingUseCustomStorageEnabled" : true , "transcriptPlan" : { "enabled" : true } , "recordingPath" : "recordingPath" , "structuredOutputIds" : [ "structuredOutputIds" ] , "structuredOutputs" : [ { "compliancePlan" : { "forceStoreOnHipaaEnabled" : false } , "conditions" : [ { "type" : "minMessages" , "count" : 4 } , { "type" : "minCallDuration" , "seconds" : 10 } ] , "name" : "name" , "schema" : { "type" : "string" } } ] , "scorecardIds" : [ "scorecardIds" ] , "scorecards" : [ { "metrics" : [ { "conditions" : [ { "type" : "comparator" , "comparator" : "=" , "value" : 1.1 , "points" : 1.1 } ] , "structuredOutputId" : "structuredOutputId" } ] } ] , "loggingPath" : "loggingPath" } , "startSpeakingPlan" : { "waitSeconds" : 0.4 , "smartEndpointingPlan" : { "provider" : "vapi" } , "customEndpointingRules" : [ { "type" : "assistant" , "regex" : "regex" , "timeoutSeconds" : 1.1 } ] , "transcriptionEndpointingPlan" : { "onPunctuationSeconds" : 0.1 , "onNoPunctuationSeconds" : 1.5 , "onNumberSeconds" : 0.5 } } , "stopSpeakingPlan" : { "numWords" : 0 , "voiceSeconds" : 0.2 , "backoffSeconds" : 1 , "acknowledgementPhrases" : [ "i understand" , "i see" , "i got it" , "i hear you" , "im listening" , "im with you" , "right" , "okay" , "ok" , "sure" , "alright" , "got it" , "understood" , "yeah" , "yes" , "uh-huh" , "mm-hmm" , "gotcha" , "mhmm" , "ah" , "yeah okay" , "yeah sure" ] , "interruptionPhrases" : [ "stop" , "shut" , "up" , "enough" , "quiet" , "silence" , "but" , "dont" , "not" , "no" , "hold" , "wait" , "cut" , "pause" , "nope" , "nah" , "nevermind" , "never" , "bad" , "actually" ] } , "monitorPlan" : { "listenEnabled" : false , "listenAuthenticationEnabled" : false , "controlEnabled" : false , "controlAuthenticationEnabled" : false , "monitorIds" : [ "123e4567-e89b-12d3-a456-426614174000" ] } , "credentialIds" : [ "credentialIds" ] , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "keypadInputPlan" : { "enabled" : true , "timeoutSeconds" : 1.1 , "delimiters" : "#" } } , "server" : { "timeoutSeconds" : 20 , "credentialId" : "550e8400-e29b-41d4-a716-446655440000" , "staticIpAddressesEnabled" : false , "encryptedPaths" : [ "encryptedPaths" ] , "url" : "url" , "headers" : { "key" : "value" } , "backoffPlan" : { "type" : { "key" : "value" } , "maxRetries" : 0 , "baseDelaySeconds" : 1 , "excludedStatusCodes" : [ { "key" : "value" } , { "key" : "value" } , { "key" : "value" } , { "key" : "value" } ] } } , "serverMessages" : [ "campaign.started" , "contact.dispatched" ] , "predialPlan" : { "enabled" : true } , "id" : "id" , "orgId" : "orgId" , "createdAt" : "2024-01-15T09:30:00Z" , "updatedAt" : "2024-01-15T09:30:00Z" , "calls" : { "key" : "value" } , "callsCounterScheduled" : 1.1 , "callsCounterQueued" : 1.1 , "callsCounterInProgress" : 1.1 , "callsCounterEndedVoicemail" : 1.1 , "callsCounterEnded" : 1.1 }; server .mockEndpoint() @@ -18668,6 +18682,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -19086,6 +19101,7 @@ describe("CampaignsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/chats.test.ts b/tests/wire/chats.test.ts index d1b0dda9..04eaa8f1 100644 --- a/tests/wire/chats.test.ts +++ b/tests/wire/chats.test.ts @@ -4678,6 +4678,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5116,6 +5117,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -6818,6 +6820,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -6856,6 +6860,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7426,6 +7431,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -9612,6 +9618,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -9645,6 +9653,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -10083,6 +10092,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -11785,6 +11795,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -11816,6 +11828,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -12386,6 +12399,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -14572,6 +14586,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -14605,6 +14621,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -15043,6 +15060,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -16745,6 +16763,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -16776,6 +16796,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -17346,6 +17367,7 @@ describe("ChatsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -19532,6 +19554,8 @@ describe("ChatsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, diff --git a/tests/wire/eval.test.ts b/tests/wire/eval.test.ts index e7d1b471..7ed203be 100644 --- a/tests/wire/eval.test.ts +++ b/tests/wire/eval.test.ts @@ -1,10 +1,11 @@ // This file was auto-generated by Fern from our API Definition. +import * as Vapi from "../../src/api/index"; import { VapiClient } from "../../src/Client"; import { mockServerPool } from "../mock-server/MockServerPool"; describe("EvalClient", () => { - test("EvalController_getPaginated", async () => { + test("EvalController_getPaginated (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -85,7 +86,20 @@ describe("EvalClient", () => { }); }); - test("EvalController_create", async () => { + test("EvalController_getPaginated (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/eval").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerGetPaginated(); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_create (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = { messages: [{ role: "assistant" }], type: "chat.mockConversation" }; @@ -148,7 +162,40 @@ describe("EvalClient", () => { }); }); - test("EvalController_get", async () => { + test("EvalController_create (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = { + messages: [{ role: "assistant" }, { role: "assistant" }], + type: "chat.mockConversation", + }; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/eval") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(403) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.eval.evalControllerCreate({ + messages: [ + { + role: "assistant", + }, + { + role: "assistant", + }, + ], + type: "chat.mockConversation", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_get (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -199,7 +246,22 @@ describe("EvalClient", () => { }); }); - test("EvalController_remove", async () => { + test("EvalController_get (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/eval/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerGet({ + id: "id", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_remove (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -250,7 +312,22 @@ describe("EvalClient", () => { }); }); - test("EvalController_update", async () => { + test("EvalController_remove (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().delete("/eval/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerRemove({ + id: "id", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_update (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = {}; @@ -308,7 +385,29 @@ describe("EvalClient", () => { }); }); - test("EvalController_getRun", async () => { + test("EvalController_update (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = {}; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .patch("/eval/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(403) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.eval.evalControllerUpdate({ + id: "id", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_getRun (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -2261,7 +2360,22 @@ describe("EvalClient", () => { }); }); - test("EvalController_removeRun", async () => { + test("EvalController_getRun (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/eval/run/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerGetRun({ + id: "id", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_removeRun (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -4214,7 +4328,22 @@ describe("EvalClient", () => { }); }); - test("EvalController_getRunsPaginated", async () => { + test("EvalController_removeRun (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().delete("/eval/run/id").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerRemoveRun({ + id: "id", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_getRunsPaginated (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); @@ -6143,7 +6272,20 @@ describe("EvalClient", () => { }); }); - test("EvalController_run", async () => { + test("EvalController_getRunsPaginated (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + + const rawResponseBody = { key: "value" }; + + server.mockEndpoint().get("/eval/run").respondWith().statusCode(403).jsonBody(rawResponseBody).build(); + + await expect(async () => { + return await client.eval.evalControllerGetRunsPaginated(); + }).rejects.toThrow(Vapi.ForbiddenError); + }); + + test("EvalController_run (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = { target: { type: "assistant" }, type: "eval" }; @@ -6168,4 +6310,29 @@ describe("EvalClient", () => { key: "value", }); }); + + test("EvalController_run (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = { target: { type: "assistant" }, type: "eval" }; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .post("/eval/run") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(403) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.eval.evalControllerRun({ + target: { + type: "assistant", + }, + type: "eval", + }); + }).rejects.toThrow(Vapi.ForbiddenError); + }); }); diff --git a/tests/wire/sessions.test.ts b/tests/wire/sessions.test.ts index 18ef3573..db72bf77 100644 --- a/tests/wire/sessions.test.ts +++ b/tests/wire/sessions.test.ts @@ -6590,6 +6590,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -6615,6 +6617,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7053,6 +7056,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -9698,6 +9702,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -9725,6 +9731,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -10295,6 +10302,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -13712,6 +13720,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -13737,6 +13747,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -14175,6 +14186,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -16815,6 +16827,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -16842,6 +16856,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -17412,6 +17427,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -20829,6 +20845,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -20854,6 +20872,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -21292,6 +21311,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -23932,6 +23952,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -23959,6 +23981,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -24529,6 +24552,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -27946,6 +27970,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value" }, promptTokens: 1.1, completionTokens: 1.1, @@ -27971,6 +27997,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -28409,6 +28436,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -31056,6 +31084,8 @@ describe("SessionsClient", () => { costs: [ { type: "model", + seconds: 1.1, + usageComplete: true, model: { key: "value", }, @@ -31083,6 +31113,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -31653,6 +31684,7 @@ describe("SessionsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/simulationPersonalities.test.ts b/tests/wire/simulationPersonalities.test.ts index d7ea7589..6275cb7b 100644 --- a/tests/wire/simulationPersonalities.test.ts +++ b/tests/wire/simulationPersonalities.test.ts @@ -948,6 +948,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -1408,6 +1409,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -1992,6 +1994,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -2450,6 +2453,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3034,6 +3038,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3492,6 +3497,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4097,6 +4103,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4556,6 +4563,7 @@ describe("SimulationPersonalitiesClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/simulationScenarios.test.ts b/tests/wire/simulationScenarios.test.ts index de69505d..1771809e 100644 --- a/tests/wire/simulationScenarios.test.ts +++ b/tests/wire/simulationScenarios.test.ts @@ -1190,6 +1190,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -1753,6 +1754,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -2439,6 +2441,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -2994,6 +2997,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -3680,6 +3684,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4235,6 +4240,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4942,6 +4948,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5498,6 +5505,7 @@ describe("SimulationScenariosClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/squads.test.ts b/tests/wire/squads.test.ts index ddcdf3b6..29e42965 100644 --- a/tests/wire/squads.test.ts +++ b/tests/wire/squads.test.ts @@ -10,6 +10,17 @@ describe("SquadsClient", () => { const rawResponseBody = [ { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -1251,6 +1262,17 @@ describe("SquadsClient", () => { const response = await client.squads.list(); expect(response).toEqual([ { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -2812,6 +2834,17 @@ describe("SquadsClient", () => { const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = { members: [{}] }; const rawResponseBody = { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -3631,6 +3664,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -4106,6 +4140,17 @@ describe("SquadsClient", () => { members: [{}], }); expect(response).toEqual({ + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -5129,6 +5174,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -5748,6 +5794,17 @@ describe("SquadsClient", () => { const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawResponseBody = { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -6567,6 +6624,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -7035,6 +7093,17 @@ describe("SquadsClient", () => { id: "id", }); expect(response).toEqual({ + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -8058,6 +8127,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -8677,6 +8747,17 @@ describe("SquadsClient", () => { const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawResponseBody = { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -9496,6 +9577,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -9964,6 +10046,17 @@ describe("SquadsClient", () => { id: "id", }); expect(response).toEqual({ + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -10987,6 +11080,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -11606,6 +11700,17 @@ describe("SquadsClient", () => { const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = { members: [{}] }; const rawResponseBody = { + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -12425,6 +12530,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", @@ -12901,6 +13007,17 @@ describe("SquadsClient", () => { members: [{}], }); expect(response).toEqual({ + latestVersion: "latestVersion", + modelDeprecations: [ + { + slot: "model.fallbackModels[1]", + provider: "openai", + model: "gpt-4-1106-preview", + deprecationDate: "2025-09-26", + retirementDate: "2026-03-26", + replacementModel: "gpt-5", + }, + ], name: "name", members: [ { @@ -13924,6 +14041,7 @@ describe("SquadsClient", () => { mode: "max_accuracy", prompt: "prompt", agentContext: "agentContext", + agentContextAutoUpdateEnabled: true, languageCodes: ["en"], speechModel: "universal-streaming-english", realtimeUrl: "realtimeUrl", diff --git a/tests/wire/tools.test.ts b/tests/wire/tools.test.ts index 21413eeb..618fa968 100644 --- a/tests/wire/tools.test.ts +++ b/tests/wire/tools.test.ts @@ -755,7 +755,7 @@ describe("ToolsClient", () => { }).rejects.toThrow(Vapi.ConflictError); }); - test("update", async () => { + test("update (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); const rawRequestBody = { type: "apiRequest" }; @@ -955,4 +955,29 @@ describe("ToolsClient", () => { }, }); }); + + test("update (2)", async () => { + const server = mockServerPool.createServer(); + const client = new VapiClient({ maxRetries: 0, token: "test", environment: server.baseUrl }); + const rawRequestBody = { type: "apiRequest" }; + const rawResponseBody = { key: "value" }; + + server + .mockEndpoint() + .patch("/tool/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(409) + .jsonBody(rawResponseBody) + .build(); + + await expect(async () => { + return await client.tools.update({ + id: "id", + body: { + type: "apiRequest", + }, + }); + }).rejects.toThrow(Vapi.ConflictError); + }); });