@omnidim-ai/mcp-server 0.13.1 → 0.15.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/doctor.js +1 -1
- package/build/doctor.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +448 -29
- package/build/index.js.map +1 -1
- package/build/procedures.d.ts +9 -0
- package/build/procedures.js +234 -1
- package/build/procedures.js.map +1 -1
- package/build/setup.js +1 -1
- package/build/setup.js.map +1 -1
- package/build/tool-annotations.js +31 -1
- package/build/tool-annotations.js.map +1 -1
- package/build/workflow-canvas.d.ts +20 -0
- package/build/workflow-canvas.js +320 -0
- package/build/workflow-canvas.js.map +1 -0
- package/package.json +5 -5
- package/src/doctor.ts +1 -1
- package/src/index.ts +448 -29
- package/src/procedures.ts +236 -1
- package/src/setup.ts +1 -1
- package/src/tool-annotations.ts +31 -1
- package/src/workflow-canvas.ts +320 -0
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { isInteractive, printInteractiveHelp, startupBanner, trimLargeResponse }
|
|
|
7
7
|
import { beginSession, emitSessionCrash, emitSessionEnd, endSession, recordToolError, recordToolResult } from "./telemetry.js";
|
|
8
8
|
import { registerProcedures } from "./procedures.js";
|
|
9
9
|
import { toolAnnotations } from "./tool-annotations.js";
|
|
10
|
+
import { toolMeta } from "./workflow-canvas.js";
|
|
10
11
|
import { notifyUpdates } from "./update_notifier.js";
|
|
11
12
|
|
|
12
13
|
|
|
@@ -49,9 +50,9 @@ interface McpToolDefinition {
|
|
|
49
50
|
* Server configuration
|
|
50
51
|
*/
|
|
51
52
|
export const SERVER_NAME = "OmniDimension";
|
|
52
|
-
export const SERVER_VERSION = "0.
|
|
53
|
+
export const SERVER_VERSION = "0.15.0";
|
|
53
54
|
// Base URL for the API. Pinned to production; not env-overridable.
|
|
54
|
-
export const API_BASE_URL = "https://
|
|
55
|
+
export const API_BASE_URL = "https://omnidim.io/api/v1";
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
58
|
* MCP Server instance
|
|
@@ -102,7 +103,7 @@ connect and talk, see "Connect the client and talk" below the
|
|
|
102
103
|
request details.
|
|
103
104
|
|
|
104
105
|
(Tags: Sessions)`,
|
|
105
|
-
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","type"],"properties":{"agent_id":{"type":"number","description":"ID of the agent the session talks to."},"type":{"type":"string","default":"voice","enum":["voice"],"description":"The session type. Only `voice` is supported."},"custom_variables":{"type":"object","additionalProperties":true,"description":"Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\n"},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
106
|
+
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","type"],"properties":{"agent_id":{"type":"number","description":"ID of the agent the session talks to."},"type":{"type":"string","default":"voice","enum":["voice"],"description":"The session type. Only `voice` is supported."},"custom_variables":{"type":"object","additionalProperties":true,"description":"Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\nTwo reserved keys are read as instructions for this session\nand never reach the agent: `__languages` and\n`__post_call_actions`.\n","properties":{"__languages":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Languages this session runs in, replacing the agent's\nconfigured list. The first entry is the language the\nvisitor is greeted in. Send an array, or a pipe-separated\nstring such as `Hindi|English`.\n"},"__post_call_actions":{"allOf":[{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}}],"description":"Post-call actions for this session only, in the same shape\nas `post_call_actions` on agent create. Email and webhook\nonly. They replace the agent's own post-call actions for\nthis session. Items that cannot be used are skipped and\nlisted in `post_call_actions_ignored`.\n"}}},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
106
107
|
method: "post",
|
|
107
108
|
pathTemplate: "/sessions/create",
|
|
108
109
|
executionParameters: [],
|
|
@@ -128,7 +129,8 @@ request details.
|
|
|
128
129
|
name: "createAgent",
|
|
129
130
|
description: `Create a new agent with the provided configuration. The full
|
|
130
131
|
config supports transcriber, model, voice, web search, transfer,
|
|
131
|
-
end-call conditions, post-call actions (email
|
|
132
|
+
end-call conditions, post-call actions (email, webhook, Omni CRM,
|
|
133
|
+
Cloud WhatsApp, or a workflow),
|
|
132
134
|
ambient background track, initial ringing sound, and multilingual support.
|
|
133
135
|
|
|
134
136
|
> **Voicemail detection is an access-gated feature** that we turn on per
|
|
@@ -137,10 +139,10 @@ account. If it isn't enabled for yours yet,
|
|
|
137
139
|
before configuring the \`voicemail\` object.
|
|
138
140
|
|
|
139
141
|
(Tags: Agents)`,
|
|
140
|
-
inputSchema: {"type":"object","properties":{"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.","example":"deepgram_stream"},"model":{"type":"string","enum":["nova-3","nova-2"],"description":"The model to use for transcription (required when provider is `deepgram_stream`).","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. The current catalog is returned by the LLM providers list.","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.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it.","example":"eleven_labs"},"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":"JBFqnCBsd6RMkjVDRZzb"},"model":{"type":"string","description":"TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n","example":"sonic-3.5"},"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"],"description":"The search provider to use.","example":"DuckDuckGo"}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends. Configure email, webhook, or both.","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]},"example":["completed","failed"]}}}}},"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","welcome_message","context_breakdown"]}],"description":"The JSON request body."}},"required":["requestBody"]},
|
|
142
|
+
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.","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. The current catalog is returned by the LLM providers list.","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.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it.","example":"eleven_labs"},"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":"JBFqnCBsd6RMkjVDRZzb"},"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","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}},"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"]},
|
|
141
143
|
method: "post",
|
|
142
144
|
pathTemplate: "/agents/create",
|
|
143
|
-
executionParameters: [],
|
|
145
|
+
executionParameters: [{"name":"Idempotency-Key","in":"header"}],
|
|
144
146
|
requestBodyContentType: "application/json",
|
|
145
147
|
securityRequirements: [{"BearerAuth":[]}],
|
|
146
148
|
tags: ["Agents"],
|
|
@@ -148,7 +150,7 @@ before configuring the \`voicemail\` object.
|
|
|
148
150
|
}],
|
|
149
151
|
["getAgent", {
|
|
150
152
|
name: "getAgent",
|
|
151
|
-
description: `Get details of a specific agent by ID. The response also includes a \`
|
|
153
|
+
description: `Get details of a specific agent by ID. The response also includes a \`can_publish\` boolean showing whether [version history](/docs/api-reference/agents/listAgentVersions) is turned on for the agent's organization.
|
|
152
154
|
(Tags: Agents)`,
|
|
153
155
|
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."}},"required":["agent_id"]},
|
|
154
156
|
method: "get",
|
|
@@ -163,9 +165,11 @@ before configuring the \`voicemail\` object.
|
|
|
163
165
|
name: "updateAgent",
|
|
164
166
|
description: `Update an existing agent. Send only the fields you want to change.
|
|
165
167
|
|
|
168
|
+
\`post_call_actions\` replaces the agent's email, webhook, Omni CRM, Cloud WhatsApp and workflow actions as one set, but only when you send at least one of those types. Google Sheets, Slack, Salesforce, HubSpot and Zoho Bigin actions are replaced only when their key is sent, and kept otherwise. If a sent action gives a variable key a new prompt, kept actions that use the same key take the new prompt too. To add, change or remove one action without touching the others, use \`/agents/{agent_id}/post-call-actions\`.
|
|
169
|
+
|
|
166
170
|
> **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.
|
|
167
171
|
(Tags: Agents)`,
|
|
168
|
-
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."},"model":{"type":"string","enum":["nova-3","nova-2"],"description":"The model to use for transcription (required when provider is `deepgram_stream`)."},"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. The current catalog is returned by the LLM providers list."},"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.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it."},"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."},"model":{"type":"string","description":"TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n"},"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"],"description":"The search provider to use."}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends. Configure email, webhook, or both.","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"}},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]}}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload."},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]}}}}}},"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"]},
|
|
172
|
+
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."},"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. The current catalog is returned by the LLM providers list."},"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.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it."},"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","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"}},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload."},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}},"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"]},
|
|
169
173
|
method: "put",
|
|
170
174
|
pathTemplate: "/agents/{agent_id}",
|
|
171
175
|
executionParameters: [{"name":"agent_id","in":"path"}],
|
|
@@ -187,11 +191,76 @@ before configuring the \`voicemail\` object.
|
|
|
187
191
|
tags: ["Agents"],
|
|
188
192
|
deprecated: false
|
|
189
193
|
}],
|
|
194
|
+
["listPostCallActions", {
|
|
195
|
+
name: "listPostCallActions",
|
|
196
|
+
description: `List every post-call action on the agent, each with its own \`id\`.
|
|
197
|
+
(Tags: Agents)`,
|
|
198
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."}},"required":["agent_id"]},
|
|
199
|
+
method: "get",
|
|
200
|
+
pathTemplate: "/agents/{agent_id}/post-call-actions",
|
|
201
|
+
executionParameters: [{"name":"agent_id","in":"path"}],
|
|
202
|
+
requestBodyContentType: undefined,
|
|
203
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
204
|
+
tags: ["Agents"],
|
|
205
|
+
deprecated: false
|
|
206
|
+
}],
|
|
207
|
+
["addPostCallAction", {
|
|
208
|
+
name: "addPostCallAction",
|
|
209
|
+
description: `Add one post-call action to the agent. The agent's other actions are not changed. Send an \`Idempotency-Key\` header to make a retry safe: the same key and body return the action the first request added.
|
|
210
|
+
(Tags: Agents)`,
|
|
211
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"Idempotency-Key":{"type":"string","description":"Any unique string. A retry with the same key and body adds nothing new."},"requestBody":{"allOf":[{"type":"object","description":"One post-call action. `type` picks the channel; send the fields of\nthat channel plus any of the shared ones. `type` is required when\nadding an action; an update sends only the fields it changes.\n","properties":{"type":{"type":"string","enum":["email","webhook","omni_crm","cloud_whatsapp","workflow","google_sheets","slack","salesforce","hubspot","zoho_bigin"],"description":"The channel. It cannot change after the action is created:\ndelete it and add a new one. `google_sheets`, `slack`,\n`salesforce`, `hubspot` and `zoho_bigin` deliver through an\naccount connected in the dashboard: pass its id as\n`integration_id` (see List integrations).\n"},"integration_id":{"type":"integer","description":"`google_sheets`, `slack`, `salesforce`, `hubspot`, `zoho_bigin`\nonly, required: the id of your integration of that type.\n"},"spreadsheet_id":{"type":"string","description":"`google_sheets` only, required: the id in the sheet's URL, the\npart after `/d/`.\n","example":"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"},"spreadsheet_name":{"type":"string","description":"`google_sheets` only: the sheet's name, for display."},"worksheet_name":{"type":"string","description":"`google_sheets` only: the tab to append to. Defaults to `Sheet1`.","example":"Calls"},"channel_id":{"type":"string","description":"`slack` only: the channel id. Send this or `channel_name`.","example":"C08RTQ1NY81"},"channel_name":{"type":"string","description":"`slack` only: the channel name. Send this or `channel_id`.","example":"sales"},"object_name":{"type":"string","description":"`salesforce`: `Lead` (default), `Contact`, `Account`,\n`Opportunity`, `Case`, `Task` or `Product`. `hubspot`, required:\n`contact`, `company`, `deal` or `ticket`. Both send a fixed set of\nfields for the chosen object, so they take no `extracted_variables`.\n"},"create_call_log":{"type":"boolean","description":"`zoho_bigin` only: log the call in Zoho Bigin. Defaults to true."},"update_contact":{"type":"boolean","description":"`zoho_bigin` only: update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"`zoho_bigin` only: create a contact when no contact matches. Defaults to true."},"recipients":{"type":"array","description":"`email` only, required: the addresses to notify.","items":{"type":"string","format":"email"},"example":["support@acme-corp.io"]},"url":{"type":"string","format":"uri","description":"`webhook` only, required: the endpoint that receives a POST with the call payload.","example":"https://crm.acme-corp.io/omnidim-callback"},"phone_number_id":{"type":"integer","description":"`cloud_whatsapp` only, required: your Cloud WhatsApp number the message is sent from. Also send `template_id` or `templates`, or nothing is sent."},"template_id":{"type":"integer","description":"`cloud_whatsapp` only: an approved template on that number."},"template_variables":{"type":"array","description":"`cloud_whatsapp` only: which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"`cloud_whatsapp` only: one or more templates to send.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}},"workflow_id":{"type":"integer","description":"`workflow` only, required: the workflow to run. It must have a published version, or the action is skipped."},"include":{"type":"array","description":"Which sections to include.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation. A key\nalready used by another action on this agent must have the same\nprompt, or the request is refused with `400`. Other actions are\nnever changed to match.\n","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"required":["type"]}],"description":"The JSON request body."}},"required":["agent_id","requestBody"]},
|
|
212
|
+
method: "post",
|
|
213
|
+
pathTemplate: "/agents/{agent_id}/post-call-actions",
|
|
214
|
+
executionParameters: [{"name":"agent_id","in":"path"},{"name":"Idempotency-Key","in":"header"}],
|
|
215
|
+
requestBodyContentType: "application/json",
|
|
216
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
217
|
+
tags: ["Agents"],
|
|
218
|
+
deprecated: false
|
|
219
|
+
}],
|
|
220
|
+
["deletePostCallAction", {
|
|
221
|
+
name: "deletePostCallAction",
|
|
222
|
+
description: `Remove one post-call action from the agent. The agent's other actions are not changed.
|
|
223
|
+
(Tags: Agents)`,
|
|
224
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"action_id":{"type":"number","description":"The ID of the post-call action."}},"required":["agent_id","action_id"]},
|
|
225
|
+
method: "delete",
|
|
226
|
+
pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
|
|
227
|
+
executionParameters: [{"name":"agent_id","in":"path"},{"name":"action_id","in":"path"}],
|
|
228
|
+
requestBodyContentType: undefined,
|
|
229
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
230
|
+
tags: ["Agents"],
|
|
231
|
+
deprecated: false
|
|
232
|
+
}],
|
|
233
|
+
["updatePostCallAction", {
|
|
234
|
+
name: "updatePostCallAction",
|
|
235
|
+
description: `Change fields of one post-call action. Fields you don't send keep their value. The \`type\` cannot change.
|
|
236
|
+
(Tags: Agents)`,
|
|
237
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"action_id":{"type":"number","description":"The ID of the post-call action."},"requestBody":{"type":"object","description":"One post-call action. `type` picks the channel; send the fields of\nthat channel plus any of the shared ones. `type` is required when\nadding an action; an update sends only the fields it changes.\n","properties":{"type":{"type":"string","enum":["email","webhook","omni_crm","cloud_whatsapp","workflow","google_sheets","slack","salesforce","hubspot","zoho_bigin"],"description":"The channel. It cannot change after the action is created:\ndelete it and add a new one. `google_sheets`, `slack`,\n`salesforce`, `hubspot` and `zoho_bigin` deliver through an\naccount connected in the dashboard: pass its id as\n`integration_id` (see List integrations).\n"},"integration_id":{"type":"number","description":"`google_sheets`, `slack`, `salesforce`, `hubspot`, `zoho_bigin`\nonly, required: the id of your integration of that type.\n"},"spreadsheet_id":{"type":"string","description":"`google_sheets` only, required: the id in the sheet's URL, the\npart after `/d/`.\n"},"spreadsheet_name":{"type":"string","description":"`google_sheets` only: the sheet's name, for display."},"worksheet_name":{"type":"string","description":"`google_sheets` only: the tab to append to. Defaults to `Sheet1`."},"channel_id":{"type":"string","description":"`slack` only: the channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"`slack` only: the channel name. Send this or `channel_id`."},"object_name":{"type":"string","description":"`salesforce`: `Lead` (default), `Contact`, `Account`,\n`Opportunity`, `Case`, `Task` or `Product`. `hubspot`, required:\n`contact`, `company`, `deal` or `ticket`. Both send a fixed set of\nfields for the chosen object, so they take no `extracted_variables`.\n"},"create_call_log":{"type":"boolean","description":"`zoho_bigin` only: log the call in Zoho Bigin. Defaults to true."},"update_contact":{"type":"boolean","description":"`zoho_bigin` only: update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"`zoho_bigin` only: create a contact when no contact matches. Defaults to true."},"recipients":{"type":"array","description":"`email` only, required: the addresses to notify.","items":{"type":"string","format":"email"}},"url":{"type":"string","format":"uri","description":"`webhook` only, required: the endpoint that receives a POST with the call payload."},"phone_number_id":{"type":"number","description":"`cloud_whatsapp` only, required: your Cloud WhatsApp number the message is sent from. Also send `template_id` or `templates`, or nothing is sent."},"template_id":{"type":"number","description":"`cloud_whatsapp` only: an approved template on that number."},"template_variables":{"type":"array","description":"`cloud_whatsapp` only: which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string."},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder."}}}},"templates":{"type":"array","description":"`cloud_whatsapp` only: one or more templates to send.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"number","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n"},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string."},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}},"workflow_id":{"type":"number","description":"`workflow` only, required: the workflow to run. It must have a published version, or the action is skipped."},"include":{"type":"array","description":"Which sections to include.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation. A key\nalready used by another action on this agent must have the same\nprompt, or the request is refused with `400`. Other actions are\nnever changed to match.\n","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}}},"required":["agent_id","action_id","requestBody"]},
|
|
238
|
+
method: "patch",
|
|
239
|
+
pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
|
|
240
|
+
executionParameters: [{"name":"agent_id","in":"path"},{"name":"action_id","in":"path"}],
|
|
241
|
+
requestBodyContentType: "application/json",
|
|
242
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
243
|
+
tags: ["Agents"],
|
|
244
|
+
deprecated: false
|
|
245
|
+
}],
|
|
246
|
+
["listIntegrations", {
|
|
247
|
+
name: "listIntegrations",
|
|
248
|
+
description: `List the integrations connected to your workspace, with each one's \`id\` and \`integration_type\`. Stored credentials (tokens, secrets, passwords, API keys, and the values of a custom API's headers and parameters) are never returned: they read \`********\`. When you create an integration, send the real values: \`********\` is refused. Accounts that sign in with OAuth (Google Sheets, Slack, HubSpot, Salesforce, Zoho Bigin) are connected in the dashboard.
|
|
249
|
+
(Tags: Integrations)`,
|
|
250
|
+
inputSchema: {"type":"object","properties":{}},
|
|
251
|
+
method: "get",
|
|
252
|
+
pathTemplate: "/integrations",
|
|
253
|
+
executionParameters: [],
|
|
254
|
+
requestBodyContentType: undefined,
|
|
255
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
256
|
+
tags: ["Integrations"],
|
|
257
|
+
deprecated: false
|
|
258
|
+
}],
|
|
190
259
|
["listAgentVersions", {
|
|
191
260
|
name: "listAgentVersions",
|
|
192
261
|
description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
|
|
193
262
|
(Tags: Agents)`,
|
|
194
|
-
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"pageno":{"type":"integer","minimum":1,"default":1,"description":"Page number for pagination."},"pagesize":{"type":"integer","minimum":1,"default":30,"maximum":150,"description":"Number of items per page (max 150)."},"search":{"type":"string","description":"Filter versions whose name matches this substring (case-insensitive)."},"kind":{"type":"string","enum":["manual","
|
|
263
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"pageno":{"type":"integer","minimum":1,"default":1,"description":"Page number for pagination."},"pagesize":{"type":"integer","minimum":1,"default":30,"maximum":150,"description":"Number of items per page (max 150)."},"search":{"type":"string","description":"Filter versions whose name matches this substring (case-insensitive)."},"kind":{"type":"string","enum":["manual","system"],"description":"Filter versions by kind."}},"required":["agent_id"]},
|
|
195
264
|
method: "get",
|
|
196
265
|
pathTemplate: "/agents/{agent_id}/versions",
|
|
197
266
|
executionParameters: [{"name":"agent_id","in":"path"},{"name":"pageno","in":"query"},{"name":"pagesize","in":"query"},{"name":"search","in":"query"},{"name":"kind","in":"query"}],
|
|
@@ -256,11 +325,11 @@ before configuring the \`voicemail\` object.
|
|
|
256
325
|
name: "restoreAgentVersion",
|
|
257
326
|
description: `Restore a version onto the live agent. Your current setup is saved first as a backup version, so restoring is undoable. Configuration is brought back; any knowledge files or integrations that were deleted since this version was saved can't be re-linked, and are reported in \`skipped\`.
|
|
258
327
|
(Tags: Agents)`,
|
|
259
|
-
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"version_number":{"type":"number","description":"The version number, as returned in `version_number` from the list or save endpoints."}},"required":["agent_id","version_number"]},
|
|
328
|
+
inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"version_number":{"type":"number","description":"The version number, as returned in `version_number` from the list or save endpoints."},"requestBody":{"type":"object","properties":{},"description":"The JSON request body."}},"required":["agent_id","version_number"]},
|
|
260
329
|
method: "post",
|
|
261
330
|
pathTemplate: "/agents/{agent_id}/versions/{version_number}/restore",
|
|
262
331
|
executionParameters: [{"name":"agent_id","in":"path"},{"name":"version_number","in":"path"}],
|
|
263
|
-
requestBodyContentType:
|
|
332
|
+
requestBodyContentType: "application/json",
|
|
264
333
|
securityRequirements: [{"BearerAuth":[]}],
|
|
265
334
|
tags: ["Agents"],
|
|
266
335
|
deprecated: false
|
|
@@ -271,7 +340,7 @@ before configuring the \`voicemail\` object.
|
|
|
271
340
|
phone number must include a country code with a leading plus.
|
|
272
341
|
|
|
273
342
|
(Tags: Calls)`,
|
|
274
|
-
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","to_number"],"properties":{"agent_id":{"type":"number","description":"The ID of the agent that will handle the call."},"to_number":{"type":"string","description":"The phone number to call. Must include country code (e.g., +15551234567)."},"from_number_id":{"type":"number","description":"Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number."},"call_context":{"type":"object","description":"Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.","additionalProperties":true},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
343
|
+
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","to_number"],"properties":{"agent_id":{"type":"number","description":"The ID of the agent that will handle the call."},"to_number":{"type":"string","description":"The phone number to call. Must include country code (e.g., +15551234567)."},"from_number_id":{"type":"number","description":"Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number."},"call_context":{"type":"object","description":"Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.","additionalProperties":true},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n"},"__languages":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Languages this call runs in, replacing the agent's configured\nlist for this call only. The first entry is the language the\ncall opens in. Send an array, or a pipe-separated string such\nas `Hindi|English`. Names the platform does not recognize are\nskipped and listed in `languages_ignored`.\n"},"__post_call_actions":{"allOf":[{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}}],"description":"Post-call actions for this call only, in the same shape as\n`post_call_actions` on agent create. Email and webhook only.\nThey replace the agent's own post-call actions for this call;\nthe agent is not changed. Items that cannot be used are\nskipped and listed in `post_call_actions_ignored`, and the\ncall still goes out. Can also be sent inside `call_context`.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
275
344
|
method: "post",
|
|
276
345
|
pathTemplate: "/calls/dispatch",
|
|
277
346
|
executionParameters: [],
|
|
@@ -323,11 +392,11 @@ phone number must include a country code with a leading plus.
|
|
|
323
392
|
name: "createBulkCall",
|
|
324
393
|
description: `Create a new bulk-call campaign. Only name, phone_number_id and a
|
|
325
394
|
contact_list are needed to dial a list now; every other field adds
|
|
326
|
-
one
|
|
395
|
+
one behavior on top (drafts, rotation, filtering, scheduling,
|
|
327
396
|
retries, dynamic feeding).
|
|
328
397
|
|
|
329
398
|
The guide below the field reference walks the whole journey: the
|
|
330
|
-
first campaign and its response, each
|
|
399
|
+
first campaign and its response, each behavior with a working
|
|
331
400
|
request, every refusal message with its fix, and the endpoints that
|
|
332
401
|
operate a campaign once it runs.
|
|
333
402
|
|
|
@@ -389,7 +458,7 @@ operating hours.
|
|
|
389
458
|
}],
|
|
390
459
|
["cancelBulkCall", {
|
|
391
460
|
name: "cancelBulkCall",
|
|
392
|
-
description: `Cancel a bulk-call campaign.
|
|
461
|
+
description: `Cancel a scheduled bulk-call campaign. A campaign that is already running, or is still a draft, is refused.
|
|
393
462
|
(Tags: Bulk calls)`,
|
|
394
463
|
inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
|
|
395
464
|
method: "delete",
|
|
@@ -517,9 +586,10 @@ with different variables, it is called twice, because two rows for one
|
|
|
517
586
|
number usually means two real reasons to call.
|
|
518
587
|
|
|
519
588
|
Rows that fail validation are reported in \`rejected\` and the rest are
|
|
520
|
-
still added, so a single bad number does not lose the batch.
|
|
521
|
-
|
|
522
|
-
|
|
589
|
+
still added, so a single bad number does not lose the batch. A row that
|
|
590
|
+
is missing a column the campaign's \`call_conditions\` need is reported in
|
|
591
|
+
\`rejected\`; the condition values themselves are not evaluated on this
|
|
592
|
+
route.
|
|
523
593
|
|
|
524
594
|
(Tags: Bulk calls)`,
|
|
525
595
|
inputSchema: {"type":"object","properties":{"campaign_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","required":["contacts"],"properties":{"contacts":{"type":"array","maxItems":1000,"description":"Each row needs `to_number`. Note this differs from the\n`contact_list` on Create bulk call, which uses\n`phone_number` and takes loose keys: here the variables go\nin an explicit `custom_variables` object.\n","items":{"type":"object","required":["to_number"],"properties":{"to_number":{"type":"string","description":"Number to call, in international format."},"custom_variables":{"type":"object","description":"Passed to the agent as context for this call, so it\ncan use them in the conversation.\n","additionalProperties":true},"metadata":{"type":"object","description":"Stored with the contact and returned on its row in\nBulk call results. Not shown to the agent.\n","additionalProperties":true}}}}},"description":"The JSON request body."}},"required":["campaign_id","requestBody"]},
|
|
@@ -541,11 +611,11 @@ when everything is in place. A campaign that is already running,
|
|
|
541
611
|
scheduled, or finished cannot be started.
|
|
542
612
|
|
|
543
613
|
(Tags: Bulk calls)`,
|
|
544
|
-
inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
|
|
614
|
+
inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{},"description":"The JSON request body."}},"required":["bulk_call_id"]},
|
|
545
615
|
method: "post",
|
|
546
616
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}/start",
|
|
547
617
|
executionParameters: [{"name":"bulk_call_id","in":"path"}],
|
|
548
|
-
requestBodyContentType:
|
|
618
|
+
requestBodyContentType: "application/json",
|
|
549
619
|
securityRequirements: [{"BearerAuth":[]}],
|
|
550
620
|
tags: ["Bulk calls"],
|
|
551
621
|
deprecated: false
|
|
@@ -577,7 +647,7 @@ or when the reason was on your side (a bad window, a number that was
|
|
|
577
647
|
having a bad day). Retried contacts keep their original variables.
|
|
578
648
|
|
|
579
649
|
(Tags: Bulk calls)`,
|
|
580
|
-
inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{"retry_strategy":{"type":"string","default":"all","description":"Which contacts to re-queue. `all` takes everything that did\nnot connect
|
|
650
|
+
inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{"retry_strategy":{"type":"string","default":"all","description":"Which contacts to re-queue. `all` takes everything that did\nnot connect. `specific` re-queues only the statuses listed\nin `failure_reasons`.\n"},"failure_reasons":{"type":"array","description":"Statuses to re-queue. Read only when `retry_strategy` is\n`specific`; for example `no-answer` and `busy`. Ignored when\n`retry_strategy` is `all`.\n","items":{"type":"string"}}},"description":"The JSON request body."}},"required":["bulk_call_id"]},
|
|
581
651
|
method: "post",
|
|
582
652
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
|
|
583
653
|
executionParameters: [{"name":"bulk_call_id","in":"path"}],
|
|
@@ -721,7 +791,7 @@ carrier its results came from, and that is the carrier a purchase has
|
|
|
721
791
|
to pass.
|
|
722
792
|
|
|
723
793
|
(Tags: Phone numbers)`,
|
|
724
|
-
inputSchema: {"type":"object","properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region to search in. `IN` and `US` both serve numbers. Which\nregions answer is configuration, so a region with no carrier\nenabled returns `404 not_available` rather than an empty list.\n"},"carrier":{"type":"string","description":"Which carrier's stock to search: carriers in a region do not sell\nthe same numbers.
|
|
794
|
+
inputSchema: {"type":"object","properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region to search in. `IN` and `US` both serve numbers. Which\nregions answer is configuration, so a region with no carrier\nenabled returns `404 not_available` rather than an empty list.\n"},"carrier":{"type":"string","description":"Which carrier's stock to search: carriers in a region do not sell\nthe same numbers. Required where a region has more than one\ncarrier; omitting it there returns `409 carrier_required` naming\nthe region's carriers and what each one stocks.\n"},"pattern":{"type":"string","description":"Digits or prefix to match within the number."},"page":{"type":"number","minimum":1,"default":1,"description":"Page of results to return."},"limit":{"type":"number","minimum":1,"maximum":150,"default":20,"description":"Results per page."}},"required":["region"]},
|
|
725
795
|
method: "get",
|
|
726
796
|
pathTemplate: "/phone_number/search",
|
|
727
797
|
executionParameters: [{"name":"region","in":"query"},{"name":"carrier","in":"query"},{"name":"pattern","in":"query"},{"name":"page","in":"query"},{"name":"limit","in":"query"}],
|
|
@@ -737,7 +807,7 @@ rental comes out of your wallet and the number is added to your
|
|
|
737
807
|
account, ready to attach to an agent.
|
|
738
808
|
|
|
739
809
|
(Tags: Phone numbers)`,
|
|
740
|
-
inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"Your own unique key for this purchase, for example a\nfresh UUID. Strongly recommended: it is what makes a\nretry safe.\n"},"requestBody":{"type":"object","required":["region","carrier","phone_number"],"properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region the number belongs to."},"phone_number":{"type":"string","description":"The number to buy, as returned by the search operation."},"carrier":{"type":"string","description":"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\
|
|
810
|
+
inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"Your own unique key for this purchase, for example a\nfresh UUID. Strongly recommended: it is what makes a\nretry safe.\n"},"requestBody":{"type":"object","required":["region","carrier","phone_number"],"properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region the number belongs to."},"phone_number":{"type":"string","description":"The number to buy, as returned by the search operation."},"carrier":{"type":"string","description":"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nRequired where the region has more than one carrier;\nomitting it there returns `409 carrier_required`.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
741
811
|
method: "post",
|
|
742
812
|
pathTemplate: "/phone_number/purchase",
|
|
743
813
|
executionParameters: [{"name":"Idempotency-Key","in":"header"}],
|
|
@@ -764,7 +834,7 @@ released.
|
|
|
764
834
|
}],
|
|
765
835
|
["attachPhoneNumber", {
|
|
766
836
|
name: "attachPhoneNumber",
|
|
767
|
-
description: `Attach
|
|
837
|
+
description: `Attach a phone number to an existing agent.
|
|
768
838
|
(Tags: Phone numbers)`,
|
|
769
839
|
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number_id","agent_id"],"properties":{"phone_number_id":{"type":"number","description":"ID of the phone number to attach."},"agent_id":{"type":"number","description":"ID of the agent to attach the phone number to."}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
770
840
|
method: "post",
|
|
@@ -777,7 +847,7 @@ released.
|
|
|
777
847
|
}],
|
|
778
848
|
["detachPhoneNumber", {
|
|
779
849
|
name: "detachPhoneNumber",
|
|
780
|
-
description: `Detach a phone number from its
|
|
850
|
+
description: `Detach a phone number from its agent.
|
|
781
851
|
(Tags: Phone numbers)`,
|
|
782
852
|
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number_id"],"properties":{"phone_number_id":{"type":"number","description":"ID of the phone number to detach."}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
783
853
|
method: "post",
|
|
@@ -818,7 +888,7 @@ released.
|
|
|
818
888
|
name: "importSipTrunk",
|
|
819
889
|
description: `Import a phone number associated with a SIP trunk.
|
|
820
890
|
(Tags: Phone numbers)`,
|
|
821
|
-
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number","sip_host","sip_trunk_name"],"properties":{"phone_number":{"type":"string","description":"Phone number in E.164 format (starting with `+`)."},"sip_host":{"type":"string","description":"SIP server hostname or IP."},"sip_trunk_name":{"type":"string","description":"Name for this SIP trunk (must be unique within your account)."},"name":{"type":"string","description":"Optional friendly name for the imported number."},"sip_port":{"type":"number","default":5060,"description":"SIP server port."},"sip_username":{"type":"string","description":"SIP authentication username."},"sip_password":{"type":"string","format":"password","description":"SIP authentication password."},"sip_dial_prefix":{"type":"string","description":"
|
|
891
|
+
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number","sip_host","sip_trunk_name"],"properties":{"phone_number":{"type":"string","description":"Phone number in E.164 format (starting with `+`)."},"sip_host":{"type":"string","description":"SIP server hostname or IP."},"sip_trunk_name":{"type":"string","description":"Name for this SIP trunk (must be unique within your account)."},"name":{"type":"string","description":"Optional friendly name for the imported number."},"sip_port":{"type":"number","default":5060,"description":"SIP server port."},"sip_username":{"type":"string","description":"SIP authentication username."},"sip_password":{"type":"string","format":"password","description":"SIP authentication password."},"sip_dial_prefix":{"type":"string","description":"Digits added in front of every number dialed through this trunk. See `sip_strip_country_code` for how it combines with the country code."},"sip_strip_country_code":{"type":"boolean","description":"When true, the country code is removed from every number dialed through this trunk. When omitted and `sip_dial_prefix` is set, the country code is removed, so send `false` to keep it."},"sip_strip_plus":{"type":"boolean","description":"When true, strips the leading `+` from the dialed number."}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
822
892
|
method: "post",
|
|
823
893
|
pathTemplate: "/phone_number/import/sip",
|
|
824
894
|
executionParameters: [],
|
|
@@ -843,11 +913,12 @@ released.
|
|
|
843
913
|
["listVoices", {
|
|
844
914
|
name: "listVoices",
|
|
845
915
|
description: `Retrieve voices with filtering and pagination support. ElevenLabs
|
|
846
|
-
|
|
916
|
+
and Cartesia support advanced filtering by name, language, accent,
|
|
917
|
+
and gender.
|
|
847
918
|
Other providers support basic pagination only.
|
|
848
919
|
|
|
849
920
|
(Tags: Providers)`,
|
|
850
|
-
inputSchema: {"type":"object","properties":{"provider":{"type":"string","enum":["eleven_labs","google","deepgram","cartesia","sarvam"],"description":"TTS provider to list voices from. Omit to list across all providers."},"search":{"type":"string","description":"Substring match against voice name or description. ElevenLabs
|
|
921
|
+
inputSchema: {"type":"object","properties":{"provider":{"type":"string","enum":["eleven_labs","google","deepgram","cartesia","sarvam","rime","playht","hume","inworld","smallest"],"description":"TTS provider to list voices from. Omit to list across all providers."},"search":{"type":"string","description":"Substring match against voice name or description. ElevenLabs and Cartesia."},"language":{"type":"string","description":"ISO language code (e.g. `en`, `hi`, `es`). ElevenLabs and Cartesia."},"accent":{"type":"string","description":"Accent label (e.g. `american`, `british`). ElevenLabs and Cartesia."},"gender":{"type":"string","enum":["male","female"],"description":"Filter voices by gender. ElevenLabs and Cartesia."},"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."}}},
|
|
851
922
|
method: "get",
|
|
852
923
|
pathTemplate: "/providers/voices",
|
|
853
924
|
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"}],
|
|
@@ -908,6 +979,353 @@ Other providers support basic pagination only.
|
|
|
908
979
|
tags: ["Providers"],
|
|
909
980
|
deprecated: false
|
|
910
981
|
}],
|
|
982
|
+
["getAccountBalance", {
|
|
983
|
+
name: "getAccountBalance",
|
|
984
|
+
description: `Read your organization's wallet: the remaining balance, the minutes
|
|
985
|
+
it buys at your rates, your plan, your concurrency headroom, and
|
|
986
|
+
whether auto-recharge will refill it.
|
|
987
|
+
|
|
988
|
+
Use it before a campaign, or on a schedule, so you find out you are
|
|
989
|
+
low on credit from this endpoint rather than from a call failing
|
|
990
|
+
with \`402 payment_required\`.
|
|
991
|
+
|
|
992
|
+
The response always describes the organization the API key belongs
|
|
993
|
+
to. There is no parameter for reading another account; resellers
|
|
994
|
+
read a client's figures through the Reseller endpoints.
|
|
995
|
+
|
|
996
|
+
A balance at or below zero does not always mean calls will stop. An
|
|
997
|
+
organization on usage-based billing (\`plan.is_usage_based\`) keeps
|
|
998
|
+
placing calls and is metered to its payment method instead, so check
|
|
999
|
+
that flag before treating a zero balance as a stop condition.
|
|
1000
|
+
|
|
1001
|
+
The API key's user needs Billing access in your organization. If
|
|
1002
|
+
you get a \`403\`, an administrator can grant it when Billing is
|
|
1003
|
+
enabled for your organization; when it is not, contact support.
|
|
1004
|
+
|
|
1005
|
+
(Tags: Account)`,
|
|
1006
|
+
inputSchema: {"type":"object","properties":{}},
|
|
1007
|
+
method: "get",
|
|
1008
|
+
pathTemplate: "/account/balance",
|
|
1009
|
+
executionParameters: [],
|
|
1010
|
+
requestBodyContentType: undefined,
|
|
1011
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1012
|
+
tags: ["Account"],
|
|
1013
|
+
deprecated: false
|
|
1014
|
+
}],
|
|
1015
|
+
["listClonedVoices", {
|
|
1016
|
+
name: "listClonedVoices",
|
|
1017
|
+
description: `Your cloned voices, oldest first, one cursor page at a time. Call it with
|
|
1018
|
+
no \`cursor\`, then pass back the \`next_cursor\` you were handed until it is
|
|
1019
|
+
\`null\`.
|
|
1020
|
+
|
|
1021
|
+
Once a voice is \`ready\`, its \`voice_id\` is the provider voice id to put
|
|
1022
|
+
in an agent's \`voice.voice_id\` with \`voice.provider: cartesia\`.
|
|
1023
|
+
|
|
1024
|
+
(Tags: Voice cloning)`,
|
|
1025
|
+
inputSchema: {"type":"object","properties":{"limit":{"type":"number","default":20,"maximum":100,"description":"Rows per page. Above 100 the request is refused."},"cursor":{"type":"string","description":"The `next_cursor` from your previous response. Omit it on the first\nrequest. Opaque: pass it back unchanged.\n"}}},
|
|
1026
|
+
method: "get",
|
|
1027
|
+
pathTemplate: "/voices",
|
|
1028
|
+
executionParameters: [{"name":"limit","in":"query"},{"name":"cursor","in":"query"}],
|
|
1029
|
+
requestBodyContentType: undefined,
|
|
1030
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1031
|
+
tags: ["Voice cloning"],
|
|
1032
|
+
deprecated: false
|
|
1033
|
+
}],
|
|
1034
|
+
["createClonedVoice", {
|
|
1035
|
+
name: "createClonedVoice",
|
|
1036
|
+
description: `Clone a voice from an audio sample. The sample must be Base64 encoded and
|
|
1037
|
+
1 KB to 25 MB. MP3, WAV and WebM are accepted; a non-audio body is
|
|
1038
|
+
refused.
|
|
1039
|
+
|
|
1040
|
+
Creation is asynchronous. This call returns \`202\` at once with
|
|
1041
|
+
\`status: processing\`. Poll \`GET /voices/{voice_id}\` until \`status\` is
|
|
1042
|
+
\`ready\` or \`failed\`, then use the \`voice_id\` in an agent's \`voice\` config with
|
|
1043
|
+
\`voice.provider: cartesia\`.
|
|
1044
|
+
|
|
1045
|
+
You must send \`consent: true\`: you confirm you have the right to clone
|
|
1046
|
+
this voice. The attestation is recorded against the clone.
|
|
1047
|
+
|
|
1048
|
+
Limits apply per user: 5 clones an hour, 20 a day, and 200 stored
|
|
1049
|
+
(processing plus ready). A request over a limit is refused with \`429\`.
|
|
1050
|
+
|
|
1051
|
+
(Tags: Voice cloning)`,
|
|
1052
|
+
inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"Optional. Send a unique value per clone; a retry with the same key\nand body returns the first clone instead of creating a second. Every\nclone costs money at the provider, so this makes a retry safe. Up to\n255 printable characters.\n"},"requestBody":{"type":"object","required":["name","clip","consent"],"properties":{"name":{"type":"string","description":"A name for the cloned voice, 1 to 100 characters."},"clip":{"type":"string","description":"Base64-encoded audio, 1 KB to 25 MB (MP3, WAV or WebM)."},"filename":{"type":"string","description":"Optional original filename, for your reference."},"description":{"type":"string","description":"Optional description."},"language":{"type":"string","description":"A short language code for the voice. Defaults to `en`."},"gender":{"type":"string","enum":["male","female"],"default":"female","description":"The voice's gender. Defaults to `female`."},"consent":{"type":"boolean","description":"Required and must be `true`: you confirm you have the right\nto clone this voice.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
1053
|
+
method: "post",
|
|
1054
|
+
pathTemplate: "/voices",
|
|
1055
|
+
executionParameters: [{"name":"Idempotency-Key","in":"header"}],
|
|
1056
|
+
requestBodyContentType: "application/json",
|
|
1057
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1058
|
+
tags: ["Voice cloning"],
|
|
1059
|
+
deprecated: false
|
|
1060
|
+
}],
|
|
1061
|
+
["getClonedVoice", {
|
|
1062
|
+
name: "getClonedVoice",
|
|
1063
|
+
description: `One cloned voice, including its creation \`status\`.
|
|
1064
|
+
(Tags: Voice cloning)`,
|
|
1065
|
+
inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
|
|
1066
|
+
method: "get",
|
|
1067
|
+
pathTemplate: "/voices/{voice_id}",
|
|
1068
|
+
executionParameters: [{"name":"voice_id","in":"path"}],
|
|
1069
|
+
requestBodyContentType: undefined,
|
|
1070
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1071
|
+
tags: ["Voice cloning"],
|
|
1072
|
+
deprecated: false
|
|
1073
|
+
}],
|
|
1074
|
+
["deleteClonedVoice", {
|
|
1075
|
+
name: "deleteClonedVoice",
|
|
1076
|
+
description: `Delete a cloned voice and remove it from the provider. A voice that is
|
|
1077
|
+
still \`processing\` cannot be deleted.
|
|
1078
|
+
|
|
1079
|
+
(Tags: Voice cloning)`,
|
|
1080
|
+
inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
|
|
1081
|
+
method: "delete",
|
|
1082
|
+
pathTemplate: "/voices/{voice_id}",
|
|
1083
|
+
executionParameters: [{"name":"voice_id","in":"path"}],
|
|
1084
|
+
requestBodyContentType: undefined,
|
|
1085
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1086
|
+
tags: ["Voice cloning"],
|
|
1087
|
+
deprecated: false
|
|
1088
|
+
}],
|
|
1089
|
+
["updateClonedVoice", {
|
|
1090
|
+
name: "updateClonedVoice",
|
|
1091
|
+
description: `Change the name, description or gender of a cloned voice.
|
|
1092
|
+
(Tags: Voice cloning)`,
|
|
1093
|
+
inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."},"requestBody":{"type":"object","properties":{"name":{"type":"string","description":"1 to 100 characters."},"description":{"type":"string"},"gender":{"type":"string","enum":["male","female"]}},"description":"The JSON request body."}},"required":["voice_id","requestBody"]},
|
|
1094
|
+
method: "patch",
|
|
1095
|
+
pathTemplate: "/voices/{voice_id}",
|
|
1096
|
+
executionParameters: [{"name":"voice_id","in":"path"}],
|
|
1097
|
+
requestBodyContentType: "application/json",
|
|
1098
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1099
|
+
tags: ["Voice cloning"],
|
|
1100
|
+
deprecated: false
|
|
1101
|
+
}],
|
|
1102
|
+
["getClonedVoiceSample", {
|
|
1103
|
+
name: "getClonedVoiceSample",
|
|
1104
|
+
description: `Stream the generated mp3 sample of a cloned voice. Only the owner can
|
|
1105
|
+
fetch it. \`404\` (\`sample_not_ready\`) when no sample exists yet. The
|
|
1106
|
+
request needs your API key in the \`Authorization\` header.
|
|
1107
|
+
|
|
1108
|
+
(Tags: Voice cloning)`,
|
|
1109
|
+
inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
|
|
1110
|
+
method: "get",
|
|
1111
|
+
pathTemplate: "/voices/{voice_id}/sample",
|
|
1112
|
+
executionParameters: [{"name":"voice_id","in":"path"}],
|
|
1113
|
+
requestBodyContentType: undefined,
|
|
1114
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1115
|
+
tags: ["Voice cloning"],
|
|
1116
|
+
deprecated: false
|
|
1117
|
+
}],
|
|
1118
|
+
["regenerateClonedVoiceSample", {
|
|
1119
|
+
name: "regenerateClonedVoiceSample",
|
|
1120
|
+
description: `Regenerate the sample audio for a \`ready\` voice.
|
|
1121
|
+
(Tags: Voice cloning)`,
|
|
1122
|
+
inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
|
|
1123
|
+
method: "post",
|
|
1124
|
+
pathTemplate: "/voices/{voice_id}/sample",
|
|
1125
|
+
executionParameters: [{"name":"voice_id","in":"path"}],
|
|
1126
|
+
requestBodyContentType: undefined,
|
|
1127
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1128
|
+
tags: ["Voice cloning"],
|
|
1129
|
+
deprecated: false
|
|
1130
|
+
}],
|
|
1131
|
+
["listWorkflowNodeTypes", {
|
|
1132
|
+
name: "listWorkflowNodeTypes",
|
|
1133
|
+
description: `Search the node types a workflow can use, such as \`whatsapp\`, \`voice_ai\` or \`conditional\`. Call it first when you do not know which node to add. Then call \`getWorkflowNodeType\` for the settings of one type.
|
|
1134
|
+
|
|
1135
|
+
(Tags: Workflows)`,
|
|
1136
|
+
inputSchema: {"type":"object","properties":{"q":{"type":"string","description":"Words to match against the type, label and description, such as `whatsapp`."},"category":{"type":"string","enum":["triggers","messaging","calls","flow","ai","crm","integrations"],"description":"Only types in this category."}}},
|
|
1137
|
+
method: "get",
|
|
1138
|
+
pathTemplate: "/workflow-node-types",
|
|
1139
|
+
executionParameters: [{"name":"q","in":"query"},{"name":"category","in":"query"}],
|
|
1140
|
+
requestBodyContentType: undefined,
|
|
1141
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1142
|
+
tags: ["Workflows"],
|
|
1143
|
+
deprecated: false
|
|
1144
|
+
}],
|
|
1145
|
+
["getWorkflowNodeType", {
|
|
1146
|
+
name: "getWorkflowNodeType",
|
|
1147
|
+
description: `The settings one node type reads, with their types, required flags and outputs. Call it before you add or edit a node, because its \`fields\` are the keys of the node's \`config\`. Use \`detail=full\` only when you need help text and examples.
|
|
1148
|
+
|
|
1149
|
+
(Tags: Workflows)`,
|
|
1150
|
+
inputSchema: {"type":"object","properties":{"node_type":{"type":"string","description":"A node type from `listWorkflowNodeTypes`, such as `whatsapp`."},"detail":{"type":"string","enum":["minimal","full"],"default":"minimal","description":"`full` adds descriptions, examples and `output_example`."}},"required":["node_type"]},
|
|
1151
|
+
method: "get",
|
|
1152
|
+
pathTemplate: "/workflow-node-types/{node_type}",
|
|
1153
|
+
executionParameters: [{"name":"node_type","in":"path"},{"name":"detail","in":"query"}],
|
|
1154
|
+
requestBodyContentType: undefined,
|
|
1155
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1156
|
+
tags: ["Workflows"],
|
|
1157
|
+
deprecated: false
|
|
1158
|
+
}],
|
|
1159
|
+
["listWorkflowFieldOptions", {
|
|
1160
|
+
name: "listWorkflowFieldOptions",
|
|
1161
|
+
description: `The choices for one \`ref\` field of a node type, such as the phone numbers, agents or integrations in your account. Call it for every \`ref\` field and never guess an id. If it returns \`400 no_options\`, the field is not chosen from a list, so ask the user for the value.
|
|
1162
|
+
|
|
1163
|
+
(Tags: Workflows)`,
|
|
1164
|
+
inputSchema: {"type":"object","properties":{"node_type":{"type":"string","description":"A node type from `listWorkflowNodeTypes`, such as `whatsapp`."},"field":{"type":"string","description":"A field name from `getWorkflowNodeType`."},"depends":{"type":"number","description":"The value of the field this one depends on (`depends_on` in the node type), such as the chosen phone number id."}},"required":["node_type","field"]},
|
|
1165
|
+
method: "get",
|
|
1166
|
+
pathTemplate: "/workflow-node-types/{node_type}/options/{field}",
|
|
1167
|
+
executionParameters: [{"name":"node_type","in":"path"},{"name":"field","in":"path"},{"name":"depends","in":"query"}],
|
|
1168
|
+
requestBodyContentType: undefined,
|
|
1169
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1170
|
+
tags: ["Workflows"],
|
|
1171
|
+
deprecated: false
|
|
1172
|
+
}],
|
|
1173
|
+
["listWorkflows", {
|
|
1174
|
+
name: "listWorkflows",
|
|
1175
|
+
description: `Your workflows, oldest first, one cursor page at a time. Use it to find a workflow id. Pass back \`next_cursor\` until it is \`null\`.
|
|
1176
|
+
|
|
1177
|
+
(Tags: Workflows)`,
|
|
1178
|
+
inputSchema: {"type":"object","properties":{"limit":{"type":"number","default":20,"minimum":1,"maximum":100,"description":"Rows per page."},"cursor":{"type":"string","description":"The `next_cursor` from the previous page. Omit it on the first request. Pass it back unchanged."}}},
|
|
1179
|
+
method: "get",
|
|
1180
|
+
pathTemplate: "/workflows",
|
|
1181
|
+
executionParameters: [{"name":"limit","in":"query"},{"name":"cursor","in":"query"}],
|
|
1182
|
+
requestBodyContentType: undefined,
|
|
1183
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1184
|
+
tags: ["Workflows"],
|
|
1185
|
+
deprecated: false
|
|
1186
|
+
}],
|
|
1187
|
+
["createWorkflow", {
|
|
1188
|
+
name: "createWorkflow",
|
|
1189
|
+
description: `Create a workflow with a draft. Without \`graph\`, the draft holds one \`trigger\` node, ready for \`editWorkflow\` ops. Pass \`graph\` only to start from a complete graph. The response carries the \`revision\` you need to edit.
|
|
1190
|
+
|
|
1191
|
+
(Tags: Workflows)`,
|
|
1192
|
+
inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"A non-empty name."},"graph":{"type":"object","description":"A complete graph to start a workflow from, in the same shape `getWorkflow`\nreturns under `draft`. A workflow you read can be sent back as a new one.\nIt is built with the same checks as `editWorkflow` ops. Most callers skip it\nand build with `editWorkflow` instead.\n","required":["nodes","edges"],"properties":{"nodes":{"type":"array","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Lowercase letters, digits and underscores, starting with a letter. Later nodes read this node's output as `{{ context.<id>.<field> }}`."},"type":{"type":"string","description":"A node type from `listWorkflowNodeTypes`."},"label":{"type":"string"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}}},"config":{"type":"object","additionalProperties":true,"description":"The node's settings. The fields come from `getWorkflowNodeType`."}}}},"edges":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","description":"Id of the node the edge starts at."},"to":{"type":"string","description":"Id of the node the edge ends at."},"handle":{"type":"string","description":"The output of the `from` node. Omit it, or send `default`, for a plain node's only output."}}}}}}},"description":"The JSON request body."}},"required":["requestBody"]},
|
|
1193
|
+
method: "post",
|
|
1194
|
+
pathTemplate: "/workflows",
|
|
1195
|
+
executionParameters: [],
|
|
1196
|
+
requestBodyContentType: "application/json",
|
|
1197
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1198
|
+
tags: ["Workflows"],
|
|
1199
|
+
deprecated: false
|
|
1200
|
+
}],
|
|
1201
|
+
["getWorkflow", {
|
|
1202
|
+
name: "getWorkflow",
|
|
1203
|
+
description: `One workflow with its draft, status and \`revision\`. Call it before every edit to get the current \`revision\`. Use \`view=structure\` to see nodes and edges without config on a large workflow. Secrets read back as \`********\`.
|
|
1204
|
+
|
|
1205
|
+
(Tags: Workflows)`,
|
|
1206
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."},"view":{"type":"string","enum":["structure","full"],"default":"full","description":"`structure` leaves node `config` out."}},"required":["workflow_id"]},
|
|
1207
|
+
method: "get",
|
|
1208
|
+
pathTemplate: "/workflows/{workflow_id}",
|
|
1209
|
+
executionParameters: [{"name":"workflow_id","in":"path"},{"name":"view","in":"query"}],
|
|
1210
|
+
requestBodyContentType: undefined,
|
|
1211
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1212
|
+
tags: ["Workflows"],
|
|
1213
|
+
deprecated: false
|
|
1214
|
+
}],
|
|
1215
|
+
["deleteWorkflow", {
|
|
1216
|
+
name: "deleteWorkflow",
|
|
1217
|
+
description: `Delete a workflow. Its published version stops running. This cannot be undone, so confirm with the user first. To stop it without deleting, use \`deactivateWorkflow\`.
|
|
1218
|
+
|
|
1219
|
+
(Tags: Workflows)`,
|
|
1220
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
|
|
1221
|
+
method: "delete",
|
|
1222
|
+
pathTemplate: "/workflows/{workflow_id}",
|
|
1223
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1224
|
+
requestBodyContentType: undefined,
|
|
1225
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1226
|
+
tags: ["Workflows"],
|
|
1227
|
+
deprecated: false
|
|
1228
|
+
}],
|
|
1229
|
+
["editWorkflow", {
|
|
1230
|
+
name: "editWorkflow",
|
|
1231
|
+
description: `Change the draft with a list of \`ops\`: add, update, move or delete nodes, and connect or disconnect them. The ops apply all together or not at all. You must send the \`revision\` from your last read. If you get \`409 revision_conflict\`, read the workflow again and retry. Secrets read back as \`********\`. Send them back unchanged to keep the stored value. This edits the draft only. Use \`publishWorkflow\` to make it live.
|
|
1232
|
+
|
|
1233
|
+
(Tags: Workflows)`,
|
|
1234
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."},"requestBody":{"type":"object","required":["revision","ops"],"properties":{"revision":{"type":"string","description":"The `draft.revision` from your last `getWorkflow` or edit."},"ops":{"type":"array","items":{"type":"object","description":"One edit to the draft. Set `op` and the fields that op uses.\n\n| `op` | Fields | Effect |\n|---|---|---|\n| `add_node` | `id`, `type`, `label?`, `config?`, `after?`, `handle?`, `position?` | Adds a node. With `after`, it also connects it to that node (on output `handle`). |\n| `update_node` | `id`, `config?`, `label?` | Merges `config` keys into the node. A `null` value removes a key. |\n| `move_node` | `id`, `position` | Moves a node on the canvas. |\n| `delete_node` | `id` | Deletes a node and its edges. |\n| `connect` | `from`, `to`, `handle?` | Adds an edge. |\n| `disconnect` | `from`, `to`, `handle?` | Removes an edge. |\n","required":["op"],"properties":{"op":{"type":"string","enum":["add_node","update_node","move_node","delete_node","connect","disconnect"]},"id":{"type":"string","description":"Node id. For `add_node`, lowercase letters, digits and underscores, starting with a letter. It must be new."},"type":{"type":"string","description":"`add_node`: a node type from `listWorkflowNodeTypes`."},"label":{"type":"string","description":"`add_node`, `update_node`: the name shown on the canvas."},"config":{"type":"object","additionalProperties":true,"description":"`add_node`, `update_node`: the node's settings. The fields come from\n`getWorkflowNodeType`. Send a secret back as `********` to keep the\nstored value.\n"},"after":{"type":"string","description":"`add_node`: id of the node to connect the new node to."},"handle":{"type":"string","description":"`add_node`, `connect`, `disconnect`: the output of the source node. Omit for the default output."},"position":{"type":"object","description":"`add_node`, `move_node`: canvas position. `add_node` places the node for you if you omit it.","properties":{"x":{"type":"number"},"y":{"type":"number"}}},"from":{"type":"string","description":"`connect`, `disconnect`: id of the node the edge starts at."},"to":{"type":"string","description":"`connect`, `disconnect`: id of the node the edge ends at."}}}},"name":{"type":"string","description":"Rename the workflow."}},"description":"The JSON request body."}},"required":["workflow_id","requestBody"]},
|
|
1235
|
+
method: "patch",
|
|
1236
|
+
pathTemplate: "/workflows/{workflow_id}",
|
|
1237
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1238
|
+
requestBodyContentType: "application/json",
|
|
1239
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1240
|
+
tags: ["Workflows"],
|
|
1241
|
+
deprecated: false
|
|
1242
|
+
}],
|
|
1243
|
+
["validateWorkflow", {
|
|
1244
|
+
name: "validateWorkflow",
|
|
1245
|
+
description: `Check the draft and list what blocks publish. It changes nothing. Call it after your edits and fix every error before \`publishWorkflow\`.
|
|
1246
|
+
|
|
1247
|
+
(Tags: Workflows)`,
|
|
1248
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
|
|
1249
|
+
method: "post",
|
|
1250
|
+
pathTemplate: "/workflows/{workflow_id}/validate",
|
|
1251
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1252
|
+
requestBodyContentType: undefined,
|
|
1253
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1254
|
+
tags: ["Workflows"],
|
|
1255
|
+
deprecated: false
|
|
1256
|
+
}],
|
|
1257
|
+
["publishWorkflow", {
|
|
1258
|
+
name: "publishWorkflow",
|
|
1259
|
+
description: `Make the draft the live version. Real events then run it, unless the workflow is paused. Run \`validateWorkflow\` first: publish is refused while the draft has errors. Ask the user before you publish.
|
|
1260
|
+
|
|
1261
|
+
(Tags: Workflows)`,
|
|
1262
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
|
|
1263
|
+
method: "post",
|
|
1264
|
+
pathTemplate: "/workflows/{workflow_id}/publish",
|
|
1265
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1266
|
+
requestBodyContentType: undefined,
|
|
1267
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1268
|
+
tags: ["Workflows"],
|
|
1269
|
+
deprecated: false
|
|
1270
|
+
}],
|
|
1271
|
+
["activateWorkflow", {
|
|
1272
|
+
name: "activateWorkflow",
|
|
1273
|
+
description: `Turn the published workflow on, so real events run it. Use it to resume a workflow you paused with \`deactivateWorkflow\`.
|
|
1274
|
+
|
|
1275
|
+
(Tags: Workflows)`,
|
|
1276
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
|
|
1277
|
+
method: "post",
|
|
1278
|
+
pathTemplate: "/workflows/{workflow_id}/activate",
|
|
1279
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1280
|
+
requestBodyContentType: undefined,
|
|
1281
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1282
|
+
tags: ["Workflows"],
|
|
1283
|
+
deprecated: false
|
|
1284
|
+
}],
|
|
1285
|
+
["deactivateWorkflow", {
|
|
1286
|
+
name: "deactivateWorkflow",
|
|
1287
|
+
description: `Turn the published workflow off, so real events stop running it. The workflow and its draft stay. Use \`activateWorkflow\` to turn it back on.
|
|
1288
|
+
|
|
1289
|
+
(Tags: Workflows)`,
|
|
1290
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
|
|
1291
|
+
method: "post",
|
|
1292
|
+
pathTemplate: "/workflows/{workflow_id}/deactivate",
|
|
1293
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1294
|
+
requestBodyContentType: undefined,
|
|
1295
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1296
|
+
tags: ["Workflows"],
|
|
1297
|
+
deprecated: false
|
|
1298
|
+
}],
|
|
1299
|
+
["testWorkflow", {
|
|
1300
|
+
name: "testWorkflow",
|
|
1301
|
+
description: `Runs the draft once with payload as the trigger data. Every node runs for real: WhatsApp messages, SMS, emails and calls go out and CRM records change. Ask the user before calling it, and use their own phone number or email in the payload.
|
|
1302
|
+
|
|
1303
|
+
It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the result.
|
|
1304
|
+
|
|
1305
|
+
(Tags: Workflows)`,
|
|
1306
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."},"requestBody":{"type":"object","properties":{"payload":{"type":"object","additionalProperties":true,"description":"The trigger data. Nodes read it as `{{ context.<trigger id>.<field> }}`. See `output_example` of the trigger node type for its shape."}},"description":"The JSON request body."}},"required":["workflow_id"]},
|
|
1307
|
+
method: "post",
|
|
1308
|
+
pathTemplate: "/workflows/{workflow_id}/test",
|
|
1309
|
+
executionParameters: [{"name":"workflow_id","in":"path"}],
|
|
1310
|
+
requestBodyContentType: "application/json",
|
|
1311
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1312
|
+
tags: ["Workflows"],
|
|
1313
|
+
deprecated: false
|
|
1314
|
+
}],
|
|
1315
|
+
["getWorkflowExecution", {
|
|
1316
|
+
name: "getWorkflowExecution",
|
|
1317
|
+
description: `One run of a workflow, with the result of each step. Use it to read the outcome of \`testWorkflow\`. A run is finished when \`state\` is \`completed\`, \`failed\` or \`cancelled\`.
|
|
1318
|
+
|
|
1319
|
+
(Tags: Workflows)`,
|
|
1320
|
+
inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."},"execution_id":{"type":"number","description":"The `execution_id` from `testWorkflow`."}},"required":["workflow_id","execution_id"]},
|
|
1321
|
+
method: "get",
|
|
1322
|
+
pathTemplate: "/workflows/{workflow_id}/executions/{execution_id}",
|
|
1323
|
+
executionParameters: [{"name":"workflow_id","in":"path"},{"name":"execution_id","in":"path"}],
|
|
1324
|
+
requestBodyContentType: undefined,
|
|
1325
|
+
securityRequirements: [{"BearerAuth":[]}],
|
|
1326
|
+
tags: ["Workflows"],
|
|
1327
|
+
deprecated: false
|
|
1328
|
+
}],
|
|
911
1329
|
]);
|
|
912
1330
|
|
|
913
1331
|
/**
|
|
@@ -927,7 +1345,8 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
927
1345
|
name: def.name,
|
|
928
1346
|
description: def.description,
|
|
929
1347
|
inputSchema: def.inputSchema,
|
|
930
|
-
annotations: toolAnnotations(def)
|
|
1348
|
+
annotations: toolAnnotations(def),
|
|
1349
|
+
_meta: toolMeta(def.name)
|
|
931
1350
|
}));
|
|
932
1351
|
return { tools: toolsForClient };
|
|
933
1352
|
});
|