@omnidim-ai/mcp-server 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ import axios from 'axios';
18
18
  * Server configuration
19
19
  */
20
20
  export const SERVER_NAME = "OmniDimension";
21
- export const SERVER_VERSION = "0.13.1";
21
+ export const SERVER_VERSION = "0.14.0";
22
22
  // Base URL for the API. Pinned to production; not env-overridable.
23
23
  export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
24
24
  /**
@@ -63,7 +63,7 @@ connect and talk, see "Connect the client and talk" below the
63
63
  request details.
64
64
 
65
65
  (Tags: Sessions)`,
66
- 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"] },
66
+ 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"] },
67
67
  method: "post",
68
68
  pathTemplate: "/sessions/create",
69
69
  executionParameters: [],
@@ -89,7 +89,8 @@ request details.
89
89
  name: "createAgent",
90
90
  description: `Create a new agent with the provided configuration. The full
91
91
  config supports transcriber, model, voice, web search, transfer,
92
- end-call conditions, post-call actions (email + webhook),
92
+ end-call conditions, post-call actions (email, webhook, Omni CRM,
93
+ Cloud WhatsApp, or a workflow),
93
94
  ambient background track, initial ringing sound, and multilingual support.
94
95
 
95
96
  > **Voicemail detection is an access-gated feature** that we turn on per
@@ -98,10 +99,10 @@ account. If it isn't enabled for yours yet,
98
99
  before configuring the \`voicemail\` object.
99
100
 
100
101
  (Tags: Agents)`,
101
- 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"] },
102
+ 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"] },
102
103
  method: "post",
103
104
  pathTemplate: "/agents/create",
104
- executionParameters: [],
105
+ executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
105
106
  requestBodyContentType: "application/json",
106
107
  securityRequirements: [{ "BearerAuth": [] }],
107
108
  tags: ["Agents"],
@@ -109,7 +110,7 @@ before configuring the \`voicemail\` object.
109
110
  }],
110
111
  ["getAgent", {
111
112
  name: "getAgent",
112
- description: `Get details of a specific agent by ID. The response also includes a \`version_history_enabled\` boolean showing whether [version history](/docs/api-reference/agents/listAgentVersions) is turned on for the agent's organization.
113
+ 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.
113
114
  (Tags: Agents)`,
114
115
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
115
116
  method: "get",
@@ -124,9 +125,11 @@ before configuring the \`voicemail\` object.
124
125
  name: "updateAgent",
125
126
  description: `Update an existing agent. Send only the fields you want to change.
126
127
 
128
+ \`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\`.
129
+
127
130
  > **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.
128
131
  (Tags: Agents)`,
129
- 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"] },
132
+ 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"] },
130
133
  method: "put",
131
134
  pathTemplate: "/agents/{agent_id}",
132
135
  executionParameters: [{ "name": "agent_id", "in": "path" }],
@@ -148,11 +151,76 @@ before configuring the \`voicemail\` object.
148
151
  tags: ["Agents"],
149
152
  deprecated: false
150
153
  }],
154
+ ["listPostCallActions", {
155
+ name: "listPostCallActions",
156
+ description: `List every post-call action on the agent, each with its own \`id\`.
157
+ (Tags: Agents)`,
158
+ inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
159
+ method: "get",
160
+ pathTemplate: "/agents/{agent_id}/post-call-actions",
161
+ executionParameters: [{ "name": "agent_id", "in": "path" }],
162
+ requestBodyContentType: undefined,
163
+ securityRequirements: [{ "BearerAuth": [] }],
164
+ tags: ["Agents"],
165
+ deprecated: false
166
+ }],
167
+ ["addPostCallAction", {
168
+ name: "addPostCallAction",
169
+ 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.
170
+ (Tags: Agents)`,
171
+ 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"] },
172
+ method: "post",
173
+ pathTemplate: "/agents/{agent_id}/post-call-actions",
174
+ executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "Idempotency-Key", "in": "header" }],
175
+ requestBodyContentType: "application/json",
176
+ securityRequirements: [{ "BearerAuth": [] }],
177
+ tags: ["Agents"],
178
+ deprecated: false
179
+ }],
180
+ ["deletePostCallAction", {
181
+ name: "deletePostCallAction",
182
+ description: `Remove one post-call action from the agent. The agent's other actions are not changed.
183
+ (Tags: Agents)`,
184
+ 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"] },
185
+ method: "delete",
186
+ pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
187
+ executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "action_id", "in": "path" }],
188
+ requestBodyContentType: undefined,
189
+ securityRequirements: [{ "BearerAuth": [] }],
190
+ tags: ["Agents"],
191
+ deprecated: false
192
+ }],
193
+ ["updatePostCallAction", {
194
+ name: "updatePostCallAction",
195
+ description: `Change fields of one post-call action. Fields you don't send keep their value. The \`type\` cannot change.
196
+ (Tags: Agents)`,
197
+ 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"] },
198
+ method: "patch",
199
+ pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
200
+ executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "action_id", "in": "path" }],
201
+ requestBodyContentType: "application/json",
202
+ securityRequirements: [{ "BearerAuth": [] }],
203
+ tags: ["Agents"],
204
+ deprecated: false
205
+ }],
206
+ ["listIntegrations", {
207
+ name: "listIntegrations",
208
+ 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.
209
+ (Tags: Integrations)`,
210
+ inputSchema: { "type": "object", "properties": {} },
211
+ method: "get",
212
+ pathTemplate: "/integrations",
213
+ executionParameters: [],
214
+ requestBodyContentType: undefined,
215
+ securityRequirements: [{ "BearerAuth": [] }],
216
+ tags: ["Integrations"],
217
+ deprecated: false
218
+ }],
151
219
  ["listAgentVersions", {
152
220
  name: "listAgentVersions",
153
221
  description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
154
222
  (Tags: Agents)`,
155
- 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", "auto", "system"], "description": "Filter versions by kind." } }, "required": ["agent_id"] },
223
+ 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"] },
156
224
  method: "get",
157
225
  pathTemplate: "/agents/{agent_id}/versions",
158
226
  executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "search", "in": "query" }, { "name": "kind", "in": "query" }],
@@ -217,11 +285,11 @@ before configuring the \`voicemail\` object.
217
285
  name: "restoreAgentVersion",
218
286
  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\`.
219
287
  (Tags: Agents)`,
220
- 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"] },
288
+ 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"] },
221
289
  method: "post",
222
290
  pathTemplate: "/agents/{agent_id}/versions/{version_number}/restore",
223
291
  executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "version_number", "in": "path" }],
224
- requestBodyContentType: undefined,
292
+ requestBodyContentType: "application/json",
225
293
  securityRequirements: [{ "BearerAuth": [] }],
226
294
  tags: ["Agents"],
227
295
  deprecated: false
@@ -232,7 +300,7 @@ before configuring the \`voicemail\` object.
232
300
  phone number must include a country code with a leading plus.
233
301
 
234
302
  (Tags: Calls)`,
235
- 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"] },
303
+ 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"] },
236
304
  method: "post",
237
305
  pathTemplate: "/calls/dispatch",
238
306
  executionParameters: [],
@@ -284,11 +352,11 @@ phone number must include a country code with a leading plus.
284
352
  name: "createBulkCall",
285
353
  description: `Create a new bulk-call campaign. Only name, phone_number_id and a
286
354
  contact_list are needed to dial a list now; every other field adds
287
- one behaviour on top (drafts, rotation, filtering, scheduling,
355
+ one behavior on top (drafts, rotation, filtering, scheduling,
288
356
  retries, dynamic feeding).
289
357
 
290
358
  The guide below the field reference walks the whole journey: the
291
- first campaign and its response, each behaviour with a working
359
+ first campaign and its response, each behavior with a working
292
360
  request, every refusal message with its fix, and the endpoints that
293
361
  operate a campaign once it runs.
294
362
 
@@ -350,7 +418,7 @@ operating hours.
350
418
  }],
351
419
  ["cancelBulkCall", {
352
420
  name: "cancelBulkCall",
353
- description: `Cancel a bulk-call campaign.
421
+ description: `Cancel a scheduled bulk-call campaign. A campaign that is already running, or is still a draft, is refused.
354
422
  (Tags: Bulk calls)`,
355
423
  inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
356
424
  method: "delete",
@@ -478,9 +546,10 @@ with different variables, it is called twice, because two rows for one
478
546
  number usually means two real reasons to call.
479
547
 
480
548
  Rows that fail validation are reported in \`rejected\` and the rest are
481
- still added, so a single bad number does not lose the batch. If the
482
- campaign has \`call_conditions\`, rows that do not match are added with
483
- status \`Skipped\`.
549
+ still added, so a single bad number does not lose the batch. A row that
550
+ is missing a column the campaign's \`call_conditions\` need is reported in
551
+ \`rejected\`; the condition values themselves are not evaluated on this
552
+ route.
484
553
 
485
554
  (Tags: Bulk calls)`,
486
555
  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"] },
@@ -502,11 +571,11 @@ when everything is in place. A campaign that is already running,
502
571
  scheduled, or finished cannot be started.
503
572
 
504
573
  (Tags: Bulk calls)`,
505
- inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
574
+ 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"] },
506
575
  method: "post",
507
576
  pathTemplate: "/calls/bulk_call/{bulk_call_id}/start",
508
577
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
509
- requestBodyContentType: undefined,
578
+ requestBodyContentType: "application/json",
510
579
  securityRequirements: [{ "BearerAuth": [] }],
511
580
  tags: ["Bulk calls"],
512
581
  deprecated: false
@@ -538,7 +607,7 @@ or when the reason was on your side (a bad window, a number that was
538
607
  having a bad day). Retried contacts keep their original variables.
539
608
 
540
609
  (Tags: Bulk calls)`,
541
- 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.\n" }, "max_retries": { "type": "number", "description": "Skip contacts already retried this many times." }, "failure_reasons": { "type": "array", "description": "Re-queue only contacts that failed for these reasons, for\nexample `no-answer` and `busy`.\n", "items": { "type": "string" } } }, "description": "The JSON request body." } }, "required": ["bulk_call_id"] },
610
+ 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"] },
542
611
  method: "post",
543
612
  pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
544
613
  executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
@@ -682,7 +751,7 @@ carrier its results came from, and that is the carrier a purchase has
682
751
  to pass.
683
752
 
684
753
  (Tags: Phone numbers)`,
685
- 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. Always required, even where a region holds one,\nand omitting it returns `409 carrier_required` naming that\nregion'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", "carrier"] },
754
+ 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"] },
686
755
  method: "get",
687
756
  pathTemplate: "/phone_number/search",
688
757
  executionParameters: [{ "name": "region", "in": "query" }, { "name": "carrier", "in": "query" }, { "name": "pattern", "in": "query" }, { "name": "page", "in": "query" }, { "name": "limit", "in": "query" }],
@@ -698,7 +767,7 @@ rental comes out of your wallet and the number is added to your
698
767
  account, ready to attach to an agent.
699
768
 
700
769
  (Tags: Phone numbers)`,
701
- 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.\nAlways required, and omitting it returns\n`409 carrier_required` naming that region's carriers.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
770
+ 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"] },
702
771
  method: "post",
703
772
  pathTemplate: "/phone_number/purchase",
704
773
  executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
@@ -725,7 +794,7 @@ released.
725
794
  }],
726
795
  ["attachPhoneNumber", {
727
796
  name: "attachPhoneNumber",
728
- description: `Attach an account-owned phone number to an existing agent.
797
+ description: `Attach a phone number to an existing agent.
729
798
  (Tags: Phone numbers)`,
730
799
  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"] },
731
800
  method: "post",
@@ -738,7 +807,7 @@ released.
738
807
  }],
739
808
  ["detachPhoneNumber", {
740
809
  name: "detachPhoneNumber",
741
- description: `Detach a phone number from its associated agent.
810
+ description: `Detach a phone number from its agent.
742
811
  (Tags: Phone numbers)`,
743
812
  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"] },
744
813
  method: "post",
@@ -779,7 +848,7 @@ released.
779
848
  name: "importSipTrunk",
780
849
  description: `Import a phone number associated with a SIP trunk.
781
850
  (Tags: Phone numbers)`,
782
- 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": "Optional prefix to prepend before the destination number when dialing (e.g. to strip the country code)." }, "sip_strip_plus": { "type": "boolean", "description": "When true, strips the leading `+` from the dialed number." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
851
+ 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"] },
783
852
  method: "post",
784
853
  pathTemplate: "/phone_number/import/sip",
785
854
  executionParameters: [],
@@ -804,11 +873,12 @@ released.
804
873
  ["listVoices", {
805
874
  name: "listVoices",
806
875
  description: `Retrieve voices with filtering and pagination support. ElevenLabs
807
- supports advanced filtering by name, language, accent, and gender.
876
+ and Cartesia support advanced filtering by name, language, accent,
877
+ and gender.
808
878
  Other providers support basic pagination only.
809
879
 
810
880
  (Tags: Providers)`,
811
- 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 only." }, "language": { "type": "string", "description": "ISO language code (e.g. `en`, `hi`, `es`). ElevenLabs only." }, "accent": { "type": "string", "description": "Accent label (e.g. `american`, `british`). ElevenLabs only." }, "gender": { "type": "string", "enum": ["male", "female"], "description": "Filter voices by gender. ElevenLabs only." }, "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." } } },
881
+ 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." } } },
812
882
  method: "get",
813
883
  pathTemplate: "/providers/voices",
814
884
  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" }],
@@ -869,6 +939,353 @@ Other providers support basic pagination only.
869
939
  tags: ["Providers"],
870
940
  deprecated: false
871
941
  }],
942
+ ["getAccountBalance", {
943
+ name: "getAccountBalance",
944
+ description: `Read your organization's wallet: the remaining balance, the minutes
945
+ it buys at your rates, your plan, your concurrency headroom, and
946
+ whether auto-recharge will refill it.
947
+
948
+ Use it before a campaign, or on a schedule, so you find out you are
949
+ low on credit from this endpoint rather than from a call failing
950
+ with \`402 payment_required\`.
951
+
952
+ The response always describes the organization the API key belongs
953
+ to. There is no parameter for reading another account; resellers
954
+ read a client's figures through the Reseller endpoints.
955
+
956
+ A balance at or below zero does not always mean calls will stop. An
957
+ organization on usage-based billing (\`plan.is_usage_based\`) keeps
958
+ placing calls and is metered to its payment method instead, so check
959
+ that flag before treating a zero balance as a stop condition.
960
+
961
+ The API key's user needs Billing access in your organization. If
962
+ you get a \`403\`, an administrator can grant it when Billing is
963
+ enabled for your organization; when it is not, contact support.
964
+
965
+ (Tags: Account)`,
966
+ inputSchema: { "type": "object", "properties": {} },
967
+ method: "get",
968
+ pathTemplate: "/account/balance",
969
+ executionParameters: [],
970
+ requestBodyContentType: undefined,
971
+ securityRequirements: [{ "BearerAuth": [] }],
972
+ tags: ["Account"],
973
+ deprecated: false
974
+ }],
975
+ ["listClonedVoices", {
976
+ name: "listClonedVoices",
977
+ description: `Your cloned voices, oldest first, one cursor page at a time. Call it with
978
+ no \`cursor\`, then pass back the \`next_cursor\` you were handed until it is
979
+ \`null\`.
980
+
981
+ Once a voice is \`ready\`, its \`voice_id\` is the provider voice id to put
982
+ in an agent's \`voice.voice_id\` with \`voice.provider: cartesia\`.
983
+
984
+ (Tags: Voice cloning)`,
985
+ 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" } } },
986
+ method: "get",
987
+ pathTemplate: "/voices",
988
+ executionParameters: [{ "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
989
+ requestBodyContentType: undefined,
990
+ securityRequirements: [{ "BearerAuth": [] }],
991
+ tags: ["Voice cloning"],
992
+ deprecated: false
993
+ }],
994
+ ["createClonedVoice", {
995
+ name: "createClonedVoice",
996
+ description: `Clone a voice from an audio sample. The sample must be Base64 encoded and
997
+ 1 KB to 25 MB. MP3, WAV and WebM are accepted; a non-audio body is
998
+ refused.
999
+
1000
+ Creation is asynchronous. This call returns \`202\` at once with
1001
+ \`status: processing\`. Poll \`GET /voices/{voice_id}\` until \`status\` is
1002
+ \`ready\` or \`failed\`, then use the \`voice_id\` in an agent's \`voice\` config with
1003
+ \`voice.provider: cartesia\`.
1004
+
1005
+ You must send \`consent: true\`: you confirm you have the right to clone
1006
+ this voice. The attestation is recorded against the clone.
1007
+
1008
+ Limits apply per user: 5 clones an hour, 20 a day, and 200 stored
1009
+ (processing plus ready). A request over a limit is refused with \`429\`.
1010
+
1011
+ (Tags: Voice cloning)`,
1012
+ 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"] },
1013
+ method: "post",
1014
+ pathTemplate: "/voices",
1015
+ executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
1016
+ requestBodyContentType: "application/json",
1017
+ securityRequirements: [{ "BearerAuth": [] }],
1018
+ tags: ["Voice cloning"],
1019
+ deprecated: false
1020
+ }],
1021
+ ["getClonedVoice", {
1022
+ name: "getClonedVoice",
1023
+ description: `One cloned voice, including its creation \`status\`.
1024
+ (Tags: Voice cloning)`,
1025
+ inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Id of the cloned voice." } }, "required": ["voice_id"] },
1026
+ method: "get",
1027
+ pathTemplate: "/voices/{voice_id}",
1028
+ executionParameters: [{ "name": "voice_id", "in": "path" }],
1029
+ requestBodyContentType: undefined,
1030
+ securityRequirements: [{ "BearerAuth": [] }],
1031
+ tags: ["Voice cloning"],
1032
+ deprecated: false
1033
+ }],
1034
+ ["deleteClonedVoice", {
1035
+ name: "deleteClonedVoice",
1036
+ description: `Delete a cloned voice and remove it from the provider. A voice that is
1037
+ still \`processing\` cannot be deleted.
1038
+
1039
+ (Tags: Voice cloning)`,
1040
+ inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Id of the cloned voice." } }, "required": ["voice_id"] },
1041
+ method: "delete",
1042
+ pathTemplate: "/voices/{voice_id}",
1043
+ executionParameters: [{ "name": "voice_id", "in": "path" }],
1044
+ requestBodyContentType: undefined,
1045
+ securityRequirements: [{ "BearerAuth": [] }],
1046
+ tags: ["Voice cloning"],
1047
+ deprecated: false
1048
+ }],
1049
+ ["updateClonedVoice", {
1050
+ name: "updateClonedVoice",
1051
+ description: `Change the name, description or gender of a cloned voice.
1052
+ (Tags: Voice cloning)`,
1053
+ 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"] },
1054
+ method: "patch",
1055
+ pathTemplate: "/voices/{voice_id}",
1056
+ executionParameters: [{ "name": "voice_id", "in": "path" }],
1057
+ requestBodyContentType: "application/json",
1058
+ securityRequirements: [{ "BearerAuth": [] }],
1059
+ tags: ["Voice cloning"],
1060
+ deprecated: false
1061
+ }],
1062
+ ["getClonedVoiceSample", {
1063
+ name: "getClonedVoiceSample",
1064
+ description: `Stream the generated mp3 sample of a cloned voice. Only the owner can
1065
+ fetch it. \`404\` (\`sample_not_ready\`) when no sample exists yet. The
1066
+ request needs your API key in the \`Authorization\` header.
1067
+
1068
+ (Tags: Voice cloning)`,
1069
+ inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Id of the cloned voice." } }, "required": ["voice_id"] },
1070
+ method: "get",
1071
+ pathTemplate: "/voices/{voice_id}/sample",
1072
+ executionParameters: [{ "name": "voice_id", "in": "path" }],
1073
+ requestBodyContentType: undefined,
1074
+ securityRequirements: [{ "BearerAuth": [] }],
1075
+ tags: ["Voice cloning"],
1076
+ deprecated: false
1077
+ }],
1078
+ ["regenerateClonedVoiceSample", {
1079
+ name: "regenerateClonedVoiceSample",
1080
+ description: `Regenerate the sample audio for a \`ready\` voice.
1081
+ (Tags: Voice cloning)`,
1082
+ inputSchema: { "type": "object", "properties": { "voice_id": { "type": "number", "description": "Id of the cloned voice." } }, "required": ["voice_id"] },
1083
+ method: "post",
1084
+ pathTemplate: "/voices/{voice_id}/sample",
1085
+ executionParameters: [{ "name": "voice_id", "in": "path" }],
1086
+ requestBodyContentType: undefined,
1087
+ securityRequirements: [{ "BearerAuth": [] }],
1088
+ tags: ["Voice cloning"],
1089
+ deprecated: false
1090
+ }],
1091
+ ["listWorkflowNodeTypes", {
1092
+ name: "listWorkflowNodeTypes",
1093
+ 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.
1094
+
1095
+ (Tags: Workflows)`,
1096
+ 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." } } },
1097
+ method: "get",
1098
+ pathTemplate: "/workflow-node-types",
1099
+ executionParameters: [{ "name": "q", "in": "query" }, { "name": "category", "in": "query" }],
1100
+ requestBodyContentType: undefined,
1101
+ securityRequirements: [{ "BearerAuth": [] }],
1102
+ tags: ["Workflows"],
1103
+ deprecated: false
1104
+ }],
1105
+ ["getWorkflowNodeType", {
1106
+ name: "getWorkflowNodeType",
1107
+ 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.
1108
+
1109
+ (Tags: Workflows)`,
1110
+ 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"] },
1111
+ method: "get",
1112
+ pathTemplate: "/workflow-node-types/{node_type}",
1113
+ executionParameters: [{ "name": "node_type", "in": "path" }, { "name": "detail", "in": "query" }],
1114
+ requestBodyContentType: undefined,
1115
+ securityRequirements: [{ "BearerAuth": [] }],
1116
+ tags: ["Workflows"],
1117
+ deprecated: false
1118
+ }],
1119
+ ["listWorkflowFieldOptions", {
1120
+ name: "listWorkflowFieldOptions",
1121
+ 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.
1122
+
1123
+ (Tags: Workflows)`,
1124
+ 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"] },
1125
+ method: "get",
1126
+ pathTemplate: "/workflow-node-types/{node_type}/options/{field}",
1127
+ executionParameters: [{ "name": "node_type", "in": "path" }, { "name": "field", "in": "path" }, { "name": "depends", "in": "query" }],
1128
+ requestBodyContentType: undefined,
1129
+ securityRequirements: [{ "BearerAuth": [] }],
1130
+ tags: ["Workflows"],
1131
+ deprecated: false
1132
+ }],
1133
+ ["listWorkflows", {
1134
+ name: "listWorkflows",
1135
+ 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\`.
1136
+
1137
+ (Tags: Workflows)`,
1138
+ 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." } } },
1139
+ method: "get",
1140
+ pathTemplate: "/workflows",
1141
+ executionParameters: [{ "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
1142
+ requestBodyContentType: undefined,
1143
+ securityRequirements: [{ "BearerAuth": [] }],
1144
+ tags: ["Workflows"],
1145
+ deprecated: false
1146
+ }],
1147
+ ["createWorkflow", {
1148
+ name: "createWorkflow",
1149
+ 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.
1150
+
1151
+ (Tags: Workflows)`,
1152
+ 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"] },
1153
+ method: "post",
1154
+ pathTemplate: "/workflows",
1155
+ executionParameters: [],
1156
+ requestBodyContentType: "application/json",
1157
+ securityRequirements: [{ "BearerAuth": [] }],
1158
+ tags: ["Workflows"],
1159
+ deprecated: false
1160
+ }],
1161
+ ["getWorkflow", {
1162
+ name: "getWorkflow",
1163
+ 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 \`********\`.
1164
+
1165
+ (Tags: Workflows)`,
1166
+ 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"] },
1167
+ method: "get",
1168
+ pathTemplate: "/workflows/{workflow_id}",
1169
+ executionParameters: [{ "name": "workflow_id", "in": "path" }, { "name": "view", "in": "query" }],
1170
+ requestBodyContentType: undefined,
1171
+ securityRequirements: [{ "BearerAuth": [] }],
1172
+ tags: ["Workflows"],
1173
+ deprecated: false
1174
+ }],
1175
+ ["deleteWorkflow", {
1176
+ name: "deleteWorkflow",
1177
+ 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\`.
1178
+
1179
+ (Tags: Workflows)`,
1180
+ inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
1181
+ method: "delete",
1182
+ pathTemplate: "/workflows/{workflow_id}",
1183
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1184
+ requestBodyContentType: undefined,
1185
+ securityRequirements: [{ "BearerAuth": [] }],
1186
+ tags: ["Workflows"],
1187
+ deprecated: false
1188
+ }],
1189
+ ["editWorkflow", {
1190
+ name: "editWorkflow",
1191
+ 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.
1192
+
1193
+ (Tags: Workflows)`,
1194
+ 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"] },
1195
+ method: "patch",
1196
+ pathTemplate: "/workflows/{workflow_id}",
1197
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1198
+ requestBodyContentType: "application/json",
1199
+ securityRequirements: [{ "BearerAuth": [] }],
1200
+ tags: ["Workflows"],
1201
+ deprecated: false
1202
+ }],
1203
+ ["validateWorkflow", {
1204
+ name: "validateWorkflow",
1205
+ description: `Check the draft and list what blocks publish. It changes nothing. Call it after your edits and fix every error before \`publishWorkflow\`.
1206
+
1207
+ (Tags: Workflows)`,
1208
+ inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
1209
+ method: "post",
1210
+ pathTemplate: "/workflows/{workflow_id}/validate",
1211
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1212
+ requestBodyContentType: undefined,
1213
+ securityRequirements: [{ "BearerAuth": [] }],
1214
+ tags: ["Workflows"],
1215
+ deprecated: false
1216
+ }],
1217
+ ["publishWorkflow", {
1218
+ name: "publishWorkflow",
1219
+ 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.
1220
+
1221
+ (Tags: Workflows)`,
1222
+ inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
1223
+ method: "post",
1224
+ pathTemplate: "/workflows/{workflow_id}/publish",
1225
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1226
+ requestBodyContentType: undefined,
1227
+ securityRequirements: [{ "BearerAuth": [] }],
1228
+ tags: ["Workflows"],
1229
+ deprecated: false
1230
+ }],
1231
+ ["activateWorkflow", {
1232
+ name: "activateWorkflow",
1233
+ description: `Turn the published workflow on, so real events run it. Use it to resume a workflow you paused with \`deactivateWorkflow\`.
1234
+
1235
+ (Tags: Workflows)`,
1236
+ inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
1237
+ method: "post",
1238
+ pathTemplate: "/workflows/{workflow_id}/activate",
1239
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1240
+ requestBodyContentType: undefined,
1241
+ securityRequirements: [{ "BearerAuth": [] }],
1242
+ tags: ["Workflows"],
1243
+ deprecated: false
1244
+ }],
1245
+ ["deactivateWorkflow", {
1246
+ name: "deactivateWorkflow",
1247
+ 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.
1248
+
1249
+ (Tags: Workflows)`,
1250
+ inputSchema: { "type": "object", "properties": { "workflow_id": { "type": "number", "description": "Id of the workflow." } }, "required": ["workflow_id"] },
1251
+ method: "post",
1252
+ pathTemplate: "/workflows/{workflow_id}/deactivate",
1253
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1254
+ requestBodyContentType: undefined,
1255
+ securityRequirements: [{ "BearerAuth": [] }],
1256
+ tags: ["Workflows"],
1257
+ deprecated: false
1258
+ }],
1259
+ ["testWorkflow", {
1260
+ name: "testWorkflow",
1261
+ 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.
1262
+
1263
+ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the result.
1264
+
1265
+ (Tags: Workflows)`,
1266
+ 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"] },
1267
+ method: "post",
1268
+ pathTemplate: "/workflows/{workflow_id}/test",
1269
+ executionParameters: [{ "name": "workflow_id", "in": "path" }],
1270
+ requestBodyContentType: "application/json",
1271
+ securityRequirements: [{ "BearerAuth": [] }],
1272
+ tags: ["Workflows"],
1273
+ deprecated: false
1274
+ }],
1275
+ ["getWorkflowExecution", {
1276
+ name: "getWorkflowExecution",
1277
+ 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\`.
1278
+
1279
+ (Tags: Workflows)`,
1280
+ 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"] },
1281
+ method: "get",
1282
+ pathTemplate: "/workflows/{workflow_id}/executions/{execution_id}",
1283
+ executionParameters: [{ "name": "workflow_id", "in": "path" }, { "name": "execution_id", "in": "path" }],
1284
+ requestBodyContentType: undefined,
1285
+ securityRequirements: [{ "BearerAuth": [] }],
1286
+ tags: ["Workflows"],
1287
+ deprecated: false
1288
+ }],
872
1289
  ]);
873
1290
  /**
874
1291
  * Security schemes from the OpenAPI spec