@omnidim-ai/mcp-server 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +1 -1
- package/build/index.js +13 -8
- package/build/index.js.map +1 -1
- package/build/procedures.js +64 -39
- package/build/procedures.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +13 -8
- package/src/procedures.ts +64 -39
package/build/procedures.js
CHANGED
|
@@ -41,7 +41,14 @@ give it a **phone number** and optionally a **knowledge base**, then place
|
|
|
41
41
|
3. **The agent's numeric \`voice\` field is not used for speech.** It can read
|
|
42
42
|
back as \`false\` on an API-created agent; that is normal. The call handler
|
|
43
43
|
uses \`voice_external_id\` + \`voice_provider\`.
|
|
44
|
-
4. **
|
|
44
|
+
4. **Use the platform defaults:** transcriber \`soniox\`, one of the
|
|
45
|
+
OmniDimension voices, model \`gpt-4.1-mini\`. Pick another provider only when
|
|
46
|
+
the user names one. OmniDimension voices are our most recommended voices:
|
|
47
|
+
picked by our team for each language and tested on real calls. List them
|
|
48
|
+
with \`listVoices\` \`provider=featured\`, best first, and save one as
|
|
49
|
+
\`voice.provider\` = its \`service\` (\`cartesia\`) with its \`name\` as
|
|
50
|
+
\`voice_id\`. A Cartesia \`search\` does not find them. If none fits the
|
|
51
|
+
language or tone, pick another \`cartesia\` voice.
|
|
45
52
|
5. **\`dispatchCall\` returning \`success: true\` does NOT mean a call
|
|
46
53
|
connected.** It means the request was accepted. Proof of a real call is a
|
|
47
54
|
resulting entry in \`listCallLogs\` whose \`getCallLog\` shows a non-empty
|
|
@@ -73,27 +80,37 @@ production, grouped by the language your callers speak. Use \`listSTTProviders\`
|
|
|
73
80
|
|
|
74
81
|
- Default: \`gpt-4.1-mini\` — fast and accurate across languages, a good first
|
|
75
82
|
choice for almost any agent.
|
|
76
|
-
- Alternatives:
|
|
83
|
+
- Alternatives: any other \`name\` from \`listLLMProviders\`, which lists only the
|
|
84
|
+
models your organization can use.
|
|
85
|
+
|
|
86
|
+
## Voice
|
|
87
|
+
|
|
88
|
+
- Default: one of the OmniDimension voices, our most recommended voices. Our
|
|
89
|
+
team picks them for each language and tests them on real calls. List them
|
|
90
|
+
with \`listVoices\` \`provider=featured\`, best first, and save one under its
|
|
91
|
+
\`service\` (\`cartesia\`). See \`omnidim://reference/voices\`.
|
|
77
92
|
|
|
78
93
|
## By caller language
|
|
79
94
|
|
|
80
|
-
- **Indian English (en-IN):** transcriber \`
|
|
81
|
-
(
|
|
95
|
+
- **Indian English (en-IN):** transcriber \`soniox\`; an OmniDimension voice
|
|
96
|
+
for English (India).
|
|
82
97
|
- **Hindi / Hinglish (mixed Hindi and English):** transcriber \`soniox\`
|
|
83
|
-
(handles code-mixed speech in one stream); voice
|
|
84
|
-
- **Other Indian languages (Telugu, Bengali,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
(handles code-mixed speech in one stream); an OmniDimension voice for Hindi.
|
|
99
|
+
- **Other Indian languages (Tamil, Telugu, Marathi, Bengali, Gujarati,
|
|
100
|
+
Kannada, Malayalam, Punjabi):** transcriber \`soniox\`, or \`sarvam\` (tuned for
|
|
101
|
+
Indian languages); an OmniDimension voice for that language.
|
|
102
|
+
- **US English:** transcriber \`soniox\` or \`deepgram_stream\`; an OmniDimension
|
|
103
|
+
voice for English (American).
|
|
104
|
+
- **No OmniDimension voice for the language:** another \`cartesia\` voice.
|
|
88
105
|
|
|
89
106
|
## Field notes
|
|
90
107
|
|
|
91
|
-
- \`transcriber.provider\` is
|
|
92
|
-
|
|
93
|
-
(\`nova-3\` or \`nova-2\`); the others do not.
|
|
94
|
-
- \`voice.provider\` is
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
- \`transcriber.provider\` is a \`name\` from \`listSTTProviders\`, which lists only
|
|
109
|
+
the transcribers your organization can use. \`deepgram_stream\` also needs a
|
|
110
|
+
\`model\` (\`nova-3\` or \`nova-2\`); the others do not.
|
|
111
|
+
- \`voice.provider\` is the \`service\` of a voice from \`listVoices\`, which lists
|
|
112
|
+
only voices your organization can use. Send only \`provider\` and \`voice_id\`:
|
|
113
|
+
the platform picks the voice model.
|
|
97
114
|
|
|
98
115
|
## Responsiveness
|
|
99
116
|
|
|
@@ -101,26 +118,34 @@ production, grouped by the language your callers speak. Use \`listSTTProviders\`
|
|
|
101
118
|
- Verify your chosen voice on a short test call before launch (see
|
|
102
119
|
\`omnidim://reference/voices\`).
|
|
103
120
|
`;
|
|
104
|
-
// How to choose a voice
|
|
121
|
+
// How to choose a voice: OmniDimension voices first, then other Cartesia voices.
|
|
105
122
|
const VOICES_GUIDE = `# Choosing a voice
|
|
106
123
|
|
|
107
|
-
\`listVoices\` returns the
|
|
108
|
-
\`
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
\`listVoices\` returns only the voices your organization can use. Use a voice's
|
|
125
|
+
\`name\` field as the \`voice_id\` and its \`service\` as the \`voice.provider\` you
|
|
126
|
+
pass to \`createAgent\`.
|
|
127
|
+
|
|
128
|
+
## Start with OmniDimension voices
|
|
111
129
|
|
|
112
|
-
|
|
113
|
-
|
|
130
|
+
OmniDimension voices are our most recommended voices. Our team picks them for
|
|
131
|
+
each language and tests them on real calls. Use one unless the user asks for
|
|
132
|
+
something else.
|
|
114
133
|
|
|
115
|
-
|
|
134
|
+
- List them with \`listVoices\` \`provider=featured\`. They come back best first.
|
|
135
|
+
- They cover English (India), English (American), Hindi, Tamil, Telugu,
|
|
136
|
+
Marathi, Bengali, Gujarati, Kannada, Malayalam and Punjabi.
|
|
137
|
+
- Each one runs on Cartesia: save it as \`voice.provider\` \`cartesia\` with its
|
|
138
|
+
\`name\` as \`voice_id\`.
|
|
139
|
+
- A Cartesia \`search\` does not find them. Only \`provider=featured\` lists them.
|
|
116
140
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
141
|
+
Example: Aadya, English (India) and Hindi, voice_id
|
|
142
|
+
\`b521b304-7672-4cf9-9a34-b4eb1df1bde0\`.
|
|
143
|
+
|
|
144
|
+
## If none fits
|
|
145
|
+
|
|
146
|
+
Pick another \`cartesia\` voice. \`listVoices\` \`provider=cartesia\` filters by
|
|
147
|
+
\`search\`, \`language\`, \`accent\` and \`gender\`. Not every catalog voice
|
|
148
|
+
synthesizes cleanly, so place a short test call and listen before launch.
|
|
124
149
|
`;
|
|
125
150
|
// The createAgent field shape with two complete, copy-ready examples.
|
|
126
151
|
const AGENT_CONFIG_GUIDE = `# Building an agent with createAgent
|
|
@@ -134,8 +159,8 @@ routing guide). The fields inside:
|
|
|
134
159
|
agent's instructions.
|
|
135
160
|
- \`call_type\` — "Incoming" or "Outgoing".
|
|
136
161
|
- \`model\` — \`{ model, temperature? }\`, e.g. \`{ "model": "gpt-4.1-mini" }\`.
|
|
137
|
-
- \`voice\` — \`{ provider, voice_id
|
|
138
|
-
|
|
162
|
+
- \`voice\` — \`{ provider, voice_id }\`. Start with an OmniDimension voice
|
|
163
|
+
(\`listVoices\` \`provider=featured\`); its \`service\` is the \`provider\`.
|
|
139
164
|
- \`transcriber\` — \`{ provider, model?, language? }\`. \`model\` (\`nova-3\` /
|
|
140
165
|
\`nova-2\`) is only needed for \`deepgram_stream\`.
|
|
141
166
|
|
|
@@ -150,8 +175,8 @@ routing guide). The fields inside:
|
|
|
150
175
|
],
|
|
151
176
|
"call_type": "Incoming",
|
|
152
177
|
"model": { "model": "gpt-4.1-mini" },
|
|
153
|
-
"voice": { "provider": "cartesia", "
|
|
154
|
-
"transcriber": { "provider": "
|
|
178
|
+
"voice": { "provider": "cartesia", "voice_id": "b521b304-7672-4cf9-9a34-b4eb1df1bde0" },
|
|
179
|
+
"transcriber": { "provider": "soniox" }
|
|
155
180
|
}
|
|
156
181
|
}
|
|
157
182
|
|
|
@@ -166,7 +191,7 @@ routing guide). The fields inside:
|
|
|
166
191
|
],
|
|
167
192
|
"call_type": "Outgoing",
|
|
168
193
|
"model": { "model": "gpt-4.1-mini" },
|
|
169
|
-
"voice": { "provider": "cartesia", "
|
|
194
|
+
"voice": { "provider": "cartesia", "voice_id": "<a Hindi voice from listVoices provider=featured>" },
|
|
170
195
|
"transcriber": { "provider": "soniox" }
|
|
171
196
|
}
|
|
172
197
|
}
|
|
@@ -561,7 +586,7 @@ const RESOURCES = [
|
|
|
561
586
|
{
|
|
562
587
|
uri: "omnidim://reference/voices",
|
|
563
588
|
name: "Choosing a voice",
|
|
564
|
-
description: "
|
|
589
|
+
description: "Start with OmniDimension voices (listVoices provider=featured), our most recommended; how to save one, and what to pick when none fits.",
|
|
565
590
|
mimeType: "text/markdown",
|
|
566
591
|
text: VOICES_GUIDE,
|
|
567
592
|
},
|
|
@@ -650,7 +675,7 @@ Read the \`omnidim://guide/workflows\` resource first. It explains triggers, out
|
|
|
650
675
|
const purpose = a.purpose || "(describe the agent's job)";
|
|
651
676
|
const voiceLine = a.voice_id
|
|
652
677
|
? `Use voice_id "${a.voice_id}" (the \`name\` from listVoices).`
|
|
653
|
-
: `
|
|
678
|
+
: `Start with the OmniDimension voices, our most recommended: call \`listVoices\` with \`provider=featured\` and pick the first one that speaks the caller's language. Use its \`name\` as voice_id and its \`service\` (\`cartesia\`) as the voice provider. Verify audio on the test call.`;
|
|
654
679
|
const testLine = a.test_number
|
|
655
680
|
? `5. Place a verification call with \`dispatchCall\` { requestBody: { agent_id, to_number: "${a.test_number}" } } (omit from_number_id to use the default outbound number). Capture the returned requestId.
|
|
656
681
|
6. Poll \`listCallLogs\` { pagesize: 1 } until a new row appears for ${a.test_number}, then \`getCallLog\` on its id. The call is verified ONLY if \`call_conversation\` is non-empty (the agent actually spoke). A successful dispatch response alone is not proof.`
|
|
@@ -670,8 +695,8 @@ Follow these steps in order. Each write tool wraps its payload in \`requestBody\
|
|
|
670
695
|
"context_breakdown": [ { "title": "Purpose", "body": "<the agent's instructions, derived from the purpose above>" } ],
|
|
671
696
|
"call_type": "Outgoing",
|
|
672
697
|
"model": { "model": "gpt-4.1-mini", "temperature": 0.5 },
|
|
673
|
-
"voice": { "provider": "
|
|
674
|
-
"transcriber": { "provider": "
|
|
698
|
+
"voice": { "provider": "cartesia", "voice_id": "<name from listVoices provider=featured>" },
|
|
699
|
+
"transcriber": { "provider": "soniox" }
|
|
675
700
|
}
|
|
676
701
|
}
|
|
677
702
|
Capture the returned \`id\` as agent_id. (\`status\` is always "Completed"; it is not a build signal.)
|
package/build/procedures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedures.js","sourceRoot":"","sources":["../src/procedures.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,GAC5B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAWpG;;;;GAIG;AACH,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"procedures.js","sourceRoot":"","sources":["../src/procedures.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,GAC5B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAWpG;;;;GAIG;AACH,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DrB,CAAC;AAEF,yEAAyE;AACzE,2EAA2E;AAC3E,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDzB,CAAC;AAEF,iFAAiF;AACjF,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BpB,CAAC;AAEF,sEAAsE;AACtE,MAAM,kBAAkB,GAAG;;;;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YAC1B,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;SAC/E,CAAC;IACN,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,iBAAiB,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QAC9D,SAAS,EAAE,aAAa,EAAE;KAC7B,CAAC,CAAC,CAAC;IACJ,MAAM,CAAC,iBAAiB,CAAC,yBAAyB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAClE,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;QACnE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;IAC3F,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnidim-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"mcpName": "io.github.Omnidim/omnidim-mcp-server",
|
|
5
5
|
"description": "Official MCP server for OmniDimension. Drive voice agents, dispatch calls, and manage knowledge bases from Claude, Cursor, Windsurf, and any MCP client.",
|
|
6
6
|
"type": "module",
|
package/src/index.ts
CHANGED
|
@@ -51,7 +51,7 @@ interface McpToolDefinition {
|
|
|
51
51
|
* Server configuration
|
|
52
52
|
*/
|
|
53
53
|
export const SERVER_NAME = "OmniDimension";
|
|
54
|
-
export const SERVER_VERSION = "0.
|
|
54
|
+
export const SERVER_VERSION = "0.20.0"; // x-release-please-version
|
|
55
55
|
// Base URL for the API. Pinned to production; not env-overridable.
|
|
56
56
|
export const API_BASE_URL = "https://omnidim.io/api/v1";
|
|
57
57
|
|
|
@@ -147,7 +147,7 @@ account. If it isn't enabled for yours yet,
|
|
|
147
147
|
before configuring the \`voicemail\` object.
|
|
148
148
|
|
|
149
149
|
(Tags: Agents)`,
|
|
150
|
-
inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","maxLength":255,"description":"Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n"},"requestBody":{"allOf":[{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent.","example":"Customer Support Agent"},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call.","example":"Hello! How can I help you today?"},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"},"example":{"customer_name":"Jane Doe","order_id":"ORD-12345"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown.","example":"Purpose"},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content.","example":"This agent helps customers with product inquiries and support issues."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.","example":"America/New_York"},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use. Leave it out to use your organization's default transcriber. The STT providers list shows the ones your organization can use.","example":"deepgram_stream"},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n","example":"nova-3"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n","example":"en-US"},"silence_timeout_ms":{"type":"integer","description":"Silence timeout in milliseconds.","example":400},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"integer","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption.","example":2},"max_call_duration_in_sec":{"type":"integer","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached.","example":600},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. Leave it out to use your organization's default model. Only models your organization can use are accepted: the LLM providers list returns exactly those.","example":"gpt-4.1-mini"},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0).","example":0.7}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["cartesia","sarvam","eleven_labs","google"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use.","example":"cartesia"},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.","example":"faf0731e-dfb9-4cfc-8119-259a79b27e12"},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use.","example":"DuckDuckGo"}}},"post_call_actions":{"type":"object","additionalProperties":true,"description":"Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions"},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`.","example":"+15551234567"},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option.","example":"Transfer if the customer asks to speak with a human."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer.","example":"Please hold while I connect you to one of our agents."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.","example":"End the call once the customer's issue is resolved."},"message":{"type":"string","description":"What the agent says before hanging up.","example":"Thank you for contacting us. Have a great day!"},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`.","example":"End the call politely in the same language the user is speaking."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"},"example":["English (India)","Hindi"]}}},{"type":"object","required":["name","context_breakdown"]}],"description":"The JSON request body."}},"required":["requestBody"]},
|
|
150
|
+
inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","maxLength":255,"description":"Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n"},"requestBody":{"allOf":[{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent.","example":"Customer Support Agent"},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call.","example":"Hello! How can I help you today?"},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"},"example":{"customer_name":"Jane Doe","order_id":"ORD-12345"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown.","example":"Purpose"},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content.","example":"This agent helps customers with product inquiries and support issues."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.","example":"America/New_York"},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","description":"The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber.","example":"deepgram_stream"},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n","example":"nova-3"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n","example":"en-US"},"silence_timeout_ms":{"type":"integer","description":"Silence timeout in milliseconds.","example":400},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"integer","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption.","example":2},"max_call_duration_in_sec":{"type":"integer","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached.","example":600},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","description":"The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model.","example":"gpt-4.1-mini"},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0).","example":0.7}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","description":"The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use.","example":"cartesia"},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.","example":"faf0731e-dfb9-4cfc-8119-259a79b27e12"},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use.","example":"DuckDuckGo"}}},"post_call_actions":{"type":"object","additionalProperties":true,"description":"Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions"},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`.","example":"+15551234567"},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option.","example":"Transfer if the customer asks to speak with a human."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer.","example":"Please hold while I connect you to one of our agents."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.","example":"End the call once the customer's issue is resolved."},"message":{"type":"string","description":"What the agent says before hanging up.","example":"Thank you for contacting us. Have a great day!"},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`.","example":"End the call politely in the same language the user is speaking."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"},"example":["English (India)","Hindi"]}}},{"type":"object","required":["name","context_breakdown"]}],"description":"The JSON request body."}},"required":["requestBody"]},
|
|
151
151
|
method: "post",
|
|
152
152
|
pathTemplate: "/agents/create",
|
|
153
153
|
executionParameters: [{"name":"Idempotency-Key","in":"header"}],
|
|
@@ -177,7 +177,7 @@ before configuring the \`voicemail\` object.
|
|
|
177
177
|
|
|
178
178
|
> **Voicemail detection is an access-gated feature** that we turn on per account. If it isn't enabled for yours yet, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before configuring the \`voicemail\` object below.
|
|
179
179
|
(Tags: Agents)`,
|
|
180
|
-
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"requestBody":{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent."},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call."},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown."},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it."},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use. Leave it out to use your organization's default transcriber. The STT providers list shows the ones your organization can use."},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n"},"silence_timeout_ms":{"type":"number","description":"Silence timeout in milliseconds."},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"number","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption."},"max_call_duration_in_sec":{"type":"number","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached."},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. Leave it out to use your organization's default model. Only models your organization can use are accepted: the LLM providers list returns exactly those."},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0)."}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["cartesia","sarvam","eleven_labs","google"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use."},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it."},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use."}}},"post_call_actions":{"type":"object","additionalProperties":true,"description":"Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions"},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`."},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true."},"message":{"type":"string","description":"What the agent says before hanging up."},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"}}}}},"required":["agent_id","requestBody"]},
|
|
180
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"requestBody":{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent."},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call."},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown."},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it."},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","description":"The speech-to-text provider to use: a `name` from the STT providers list, which returns the ones your organization can use. Leave it out to use your organization's default transcriber."},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n"},"silence_timeout_ms":{"type":"number","description":"Silence timeout in milliseconds."},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"number","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption."},"max_call_duration_in_sec":{"type":"number","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached."},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","description":"The language model to use: a `name` from the LLM providers list, which returns exactly the models your organization can use. Leave it out to use your organization's default model."},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0)."}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","description":"The voice provider to use: the `service` of a voice from the voices list, which returns only voices your organization can use. Send `voice_id` alongside it. We recommend OmniDimension voices (list them with `provider=featured`) and Cartesia voices. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use."},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it."},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use."}}},"post_call_actions":{"type":"object","additionalProperties":true,"description":"Post-call actions: email, webhook, Omni CRM, WhatsApp, workflow, Google Sheets, Slack, Salesforce, HubSpot or Zoho Bigin. On an agent, add them one at a time with addPostCallAction instead. Full shape: https://docs.omnidim.io/docs/per-call-post-call-actions"},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`."},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true."},"message":{"type":"string","description":"What the agent says before hanging up."},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"}}}}},"required":["agent_id","requestBody"]},
|
|
181
181
|
method: "put",
|
|
182
182
|
pathTemplate: "/agents/{agent_id}",
|
|
183
183
|
executionParameters: [{"name":"agent_id","in":"path"}],
|
|
@@ -1029,13 +1029,18 @@ the number already has changes nothing and still succeeds.
|
|
|
1029
1029
|
}],
|
|
1030
1030
|
["listVoices", {
|
|
1031
1031
|
name: "listVoices",
|
|
1032
|
-
description: `Retrieve voices with filtering and
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1032
|
+
description: `Retrieve the voices your organization can use, with filtering and
|
|
1033
|
+
pagination. Use \`provider=featured\` for OmniDimension voices, the
|
|
1034
|
+
recommended starting point, in the order the dashboard shows them.
|
|
1035
|
+
Cartesia voices are the next choice.
|
|
1036
|
+
|
|
1037
|
+
Each voice keeps its own \`service\`: save that as the agent's voice
|
|
1038
|
+
provider. A provider your organization cannot use returns a 400.
|
|
1039
|
+
Cartesia and ElevenLabs support filtering by name, language, accent,
|
|
1040
|
+
and gender. Other providers support pagination only.
|
|
1036
1041
|
|
|
1037
1042
|
(Tags: Providers)`,
|
|
1038
|
-
inputSchema: {"type":"object","properties":{"provider":{"type":"string","
|
|
1043
|
+
inputSchema: {"type":"object","properties":{"provider":{"type":"string","description":"Provider to list voices from. Omit to list every voice your organization can use.\n`featured` lists OmniDimension voices and is the recommended choice, followed by\n`cartesia`. A provider your organization cannot use returns a 400.\n"},"search":{"type":"string","description":"Substring match against voice name or description. Cartesia and ElevenLabs."},"language":{"type":"string","description":"ISO language code (e.g. `en`, `hi`, `es`). Cartesia and ElevenLabs."},"accent":{"type":"string","description":"Accent label (e.g. `american`, `british`). Cartesia and ElevenLabs."},"gender":{"type":"string","enum":["male","female"],"description":"Filter voices by gender. Cartesia and ElevenLabs."},"page":{"type":"integer","minimum":1,"default":1,"description":"1-indexed page number."},"page_size":{"type":"integer","minimum":1,"default":30,"maximum":100,"description":"Voices per page. Capped at 100."}}},
|
|
1039
1044
|
method: "get",
|
|
1040
1045
|
pathTemplate: "/providers/voices",
|
|
1041
1046
|
executionParameters: [{"name":"provider","in":"query"},{"name":"search","in":"query"},{"name":"language","in":"query"},{"name":"accent","in":"query"},{"name":"gender","in":"query"},{"name":"page","in":"query"},{"name":"page_size","in":"query"}],
|
package/src/procedures.ts
CHANGED
|
@@ -65,7 +65,14 @@ give it a **phone number** and optionally a **knowledge base**, then place
|
|
|
65
65
|
3. **The agent's numeric \`voice\` field is not used for speech.** It can read
|
|
66
66
|
back as \`false\` on an API-created agent; that is normal. The call handler
|
|
67
67
|
uses \`voice_external_id\` + \`voice_provider\`.
|
|
68
|
-
4. **
|
|
68
|
+
4. **Use the platform defaults:** transcriber \`soniox\`, one of the
|
|
69
|
+
OmniDimension voices, model \`gpt-4.1-mini\`. Pick another provider only when
|
|
70
|
+
the user names one. OmniDimension voices are our most recommended voices:
|
|
71
|
+
picked by our team for each language and tested on real calls. List them
|
|
72
|
+
with \`listVoices\` \`provider=featured\`, best first, and save one as
|
|
73
|
+
\`voice.provider\` = its \`service\` (\`cartesia\`) with its \`name\` as
|
|
74
|
+
\`voice_id\`. A Cartesia \`search\` does not find them. If none fits the
|
|
75
|
+
language or tone, pick another \`cartesia\` voice.
|
|
69
76
|
5. **\`dispatchCall\` returning \`success: true\` does NOT mean a call
|
|
70
77
|
connected.** It means the request was accepted. Proof of a real call is a
|
|
71
78
|
resulting entry in \`listCallLogs\` whose \`getCallLog\` shows a non-empty
|
|
@@ -98,27 +105,37 @@ production, grouped by the language your callers speak. Use \`listSTTProviders\`
|
|
|
98
105
|
|
|
99
106
|
- Default: \`gpt-4.1-mini\` — fast and accurate across languages, a good first
|
|
100
107
|
choice for almost any agent.
|
|
101
|
-
- Alternatives:
|
|
108
|
+
- Alternatives: any other \`name\` from \`listLLMProviders\`, which lists only the
|
|
109
|
+
models your organization can use.
|
|
110
|
+
|
|
111
|
+
## Voice
|
|
112
|
+
|
|
113
|
+
- Default: one of the OmniDimension voices, our most recommended voices. Our
|
|
114
|
+
team picks them for each language and tests them on real calls. List them
|
|
115
|
+
with \`listVoices\` \`provider=featured\`, best first, and save one under its
|
|
116
|
+
\`service\` (\`cartesia\`). See \`omnidim://reference/voices\`.
|
|
102
117
|
|
|
103
118
|
## By caller language
|
|
104
119
|
|
|
105
|
-
- **Indian English (en-IN):** transcriber \`
|
|
106
|
-
(
|
|
120
|
+
- **Indian English (en-IN):** transcriber \`soniox\`; an OmniDimension voice
|
|
121
|
+
for English (India).
|
|
107
122
|
- **Hindi / Hinglish (mixed Hindi and English):** transcriber \`soniox\`
|
|
108
|
-
(handles code-mixed speech in one stream); voice
|
|
109
|
-
- **Other Indian languages (Telugu, Bengali,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
123
|
+
(handles code-mixed speech in one stream); an OmniDimension voice for Hindi.
|
|
124
|
+
- **Other Indian languages (Tamil, Telugu, Marathi, Bengali, Gujarati,
|
|
125
|
+
Kannada, Malayalam, Punjabi):** transcriber \`soniox\`, or \`sarvam\` (tuned for
|
|
126
|
+
Indian languages); an OmniDimension voice for that language.
|
|
127
|
+
- **US English:** transcriber \`soniox\` or \`deepgram_stream\`; an OmniDimension
|
|
128
|
+
voice for English (American).
|
|
129
|
+
- **No OmniDimension voice for the language:** another \`cartesia\` voice.
|
|
113
130
|
|
|
114
131
|
## Field notes
|
|
115
132
|
|
|
116
|
-
- \`transcriber.provider\` is
|
|
117
|
-
|
|
118
|
-
(\`nova-3\` or \`nova-2\`); the others do not.
|
|
119
|
-
- \`voice.provider\` is
|
|
120
|
-
|
|
121
|
-
|
|
133
|
+
- \`transcriber.provider\` is a \`name\` from \`listSTTProviders\`, which lists only
|
|
134
|
+
the transcribers your organization can use. \`deepgram_stream\` also needs a
|
|
135
|
+
\`model\` (\`nova-3\` or \`nova-2\`); the others do not.
|
|
136
|
+
- \`voice.provider\` is the \`service\` of a voice from \`listVoices\`, which lists
|
|
137
|
+
only voices your organization can use. Send only \`provider\` and \`voice_id\`:
|
|
138
|
+
the platform picks the voice model.
|
|
122
139
|
|
|
123
140
|
## Responsiveness
|
|
124
141
|
|
|
@@ -127,26 +144,34 @@ production, grouped by the language your callers speak. Use \`listSTTProviders\`
|
|
|
127
144
|
\`omnidim://reference/voices\`).
|
|
128
145
|
`;
|
|
129
146
|
|
|
130
|
-
// How to choose a voice
|
|
147
|
+
// How to choose a voice: OmniDimension voices first, then other Cartesia voices.
|
|
131
148
|
const VOICES_GUIDE = `# Choosing a voice
|
|
132
149
|
|
|
133
|
-
\`listVoices\` returns the
|
|
134
|
-
\`
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
\`listVoices\` returns only the voices your organization can use. Use a voice's
|
|
151
|
+
\`name\` field as the \`voice_id\` and its \`service\` as the \`voice.provider\` you
|
|
152
|
+
pass to \`createAgent\`.
|
|
153
|
+
|
|
154
|
+
## Start with OmniDimension voices
|
|
137
155
|
|
|
138
|
-
|
|
139
|
-
|
|
156
|
+
OmniDimension voices are our most recommended voices. Our team picks them for
|
|
157
|
+
each language and tests them on real calls. Use one unless the user asks for
|
|
158
|
+
something else.
|
|
140
159
|
|
|
141
|
-
|
|
160
|
+
- List them with \`listVoices\` \`provider=featured\`. They come back best first.
|
|
161
|
+
- They cover English (India), English (American), Hindi, Tamil, Telugu,
|
|
162
|
+
Marathi, Bengali, Gujarati, Kannada, Malayalam and Punjabi.
|
|
163
|
+
- Each one runs on Cartesia: save it as \`voice.provider\` \`cartesia\` with its
|
|
164
|
+
\`name\` as \`voice_id\`.
|
|
165
|
+
- A Cartesia \`search\` does not find them. Only \`provider=featured\` lists them.
|
|
142
166
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
167
|
+
Example: Aadya, English (India) and Hindi, voice_id
|
|
168
|
+
\`b521b304-7672-4cf9-9a34-b4eb1df1bde0\`.
|
|
169
|
+
|
|
170
|
+
## If none fits
|
|
171
|
+
|
|
172
|
+
Pick another \`cartesia\` voice. \`listVoices\` \`provider=cartesia\` filters by
|
|
173
|
+
\`search\`, \`language\`, \`accent\` and \`gender\`. Not every catalog voice
|
|
174
|
+
synthesizes cleanly, so place a short test call and listen before launch.
|
|
150
175
|
`;
|
|
151
176
|
|
|
152
177
|
// The createAgent field shape with two complete, copy-ready examples.
|
|
@@ -161,8 +186,8 @@ routing guide). The fields inside:
|
|
|
161
186
|
agent's instructions.
|
|
162
187
|
- \`call_type\` — "Incoming" or "Outgoing".
|
|
163
188
|
- \`model\` — \`{ model, temperature? }\`, e.g. \`{ "model": "gpt-4.1-mini" }\`.
|
|
164
|
-
- \`voice\` — \`{ provider, voice_id
|
|
165
|
-
|
|
189
|
+
- \`voice\` — \`{ provider, voice_id }\`. Start with an OmniDimension voice
|
|
190
|
+
(\`listVoices\` \`provider=featured\`); its \`service\` is the \`provider\`.
|
|
166
191
|
- \`transcriber\` — \`{ provider, model?, language? }\`. \`model\` (\`nova-3\` /
|
|
167
192
|
\`nova-2\`) is only needed for \`deepgram_stream\`.
|
|
168
193
|
|
|
@@ -177,8 +202,8 @@ routing guide). The fields inside:
|
|
|
177
202
|
],
|
|
178
203
|
"call_type": "Incoming",
|
|
179
204
|
"model": { "model": "gpt-4.1-mini" },
|
|
180
|
-
"voice": { "provider": "cartesia", "
|
|
181
|
-
"transcriber": { "provider": "
|
|
205
|
+
"voice": { "provider": "cartesia", "voice_id": "b521b304-7672-4cf9-9a34-b4eb1df1bde0" },
|
|
206
|
+
"transcriber": { "provider": "soniox" }
|
|
182
207
|
}
|
|
183
208
|
}
|
|
184
209
|
|
|
@@ -193,7 +218,7 @@ routing guide). The fields inside:
|
|
|
193
218
|
],
|
|
194
219
|
"call_type": "Outgoing",
|
|
195
220
|
"model": { "model": "gpt-4.1-mini" },
|
|
196
|
-
"voice": { "provider": "cartesia", "
|
|
221
|
+
"voice": { "provider": "cartesia", "voice_id": "<a Hindi voice from listVoices provider=featured>" },
|
|
197
222
|
"transcriber": { "provider": "soniox" }
|
|
198
223
|
}
|
|
199
224
|
}
|
|
@@ -593,7 +618,7 @@ const RESOURCES: ResourceDef[] = [
|
|
|
593
618
|
{
|
|
594
619
|
uri: "omnidim://reference/voices",
|
|
595
620
|
name: "Choosing a voice",
|
|
596
|
-
description: "
|
|
621
|
+
description: "Start with OmniDimension voices (listVoices provider=featured), our most recommended; how to save one, and what to pick when none fits.",
|
|
597
622
|
mimeType: "text/markdown",
|
|
598
623
|
text: VOICES_GUIDE,
|
|
599
624
|
},
|
|
@@ -683,7 +708,7 @@ Read the \`omnidim://guide/workflows\` resource first. It explains triggers, out
|
|
|
683
708
|
const purpose = a.purpose || "(describe the agent's job)";
|
|
684
709
|
const voiceLine = a.voice_id
|
|
685
710
|
? `Use voice_id "${a.voice_id}" (the \`name\` from listVoices).`
|
|
686
|
-
: `
|
|
711
|
+
: `Start with the OmniDimension voices, our most recommended: call \`listVoices\` with \`provider=featured\` and pick the first one that speaks the caller's language. Use its \`name\` as voice_id and its \`service\` (\`cartesia\`) as the voice provider. Verify audio on the test call.`;
|
|
687
712
|
const testLine = a.test_number
|
|
688
713
|
? `5. Place a verification call with \`dispatchCall\` { requestBody: { agent_id, to_number: "${a.test_number}" } } (omit from_number_id to use the default outbound number). Capture the returned requestId.
|
|
689
714
|
6. Poll \`listCallLogs\` { pagesize: 1 } until a new row appears for ${a.test_number}, then \`getCallLog\` on its id. The call is verified ONLY if \`call_conversation\` is non-empty (the agent actually spoke). A successful dispatch response alone is not proof.`
|
|
@@ -703,8 +728,8 @@ Follow these steps in order. Each write tool wraps its payload in \`requestBody\
|
|
|
703
728
|
"context_breakdown": [ { "title": "Purpose", "body": "<the agent's instructions, derived from the purpose above>" } ],
|
|
704
729
|
"call_type": "Outgoing",
|
|
705
730
|
"model": { "model": "gpt-4.1-mini", "temperature": 0.5 },
|
|
706
|
-
"voice": { "provider": "
|
|
707
|
-
"transcriber": { "provider": "
|
|
731
|
+
"voice": { "provider": "cartesia", "voice_id": "<name from listVoices provider=featured>" },
|
|
732
|
+
"transcriber": { "provider": "soniox" }
|
|
708
733
|
}
|
|
709
734
|
}
|
|
710
735
|
Capture the returned \`id\` as agent_id. (\`status\` is always "Completed"; it is not a build signal.)
|