@omnidim-ai/mcp-server 0.13.0 → 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/src/index.ts CHANGED
@@ -49,7 +49,7 @@ interface McpToolDefinition {
49
49
  * Server configuration
50
50
  */
51
51
  export const SERVER_NAME = "OmniDimension";
52
- export const SERVER_VERSION = "0.13.0";
52
+ export const SERVER_VERSION = "0.14.0";
53
53
  // Base URL for the API. Pinned to production; not env-overridable.
54
54
  export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
55
55
 
@@ -102,7 +102,7 @@ connect and talk, see "Connect the client and talk" below the
102
102
  request details.
103
103
 
104
104
  (Tags: Sessions)`,
105
- inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","type"],"properties":{"agent_id":{"type":"number","description":"ID of the agent the session talks to."},"type":{"type":"string","default":"voice","enum":["voice"],"description":"The session type. Only `voice` is supported."},"custom_variables":{"type":"object","additionalProperties":true,"description":"Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\n"},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
105
+ inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","type"],"properties":{"agent_id":{"type":"number","description":"ID of the agent the session talks to."},"type":{"type":"string","default":"voice","enum":["voice"],"description":"The session type. Only `voice` is supported."},"custom_variables":{"type":"object","additionalProperties":true,"description":"Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\nTwo reserved keys are read as instructions for this session\nand never reach the agent: `__languages` and\n`__post_call_actions`.\n","properties":{"__languages":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Languages this session runs in, replacing the agent's\nconfigured list. The first entry is the language the\nvisitor is greeted in. Send an array, or a pipe-separated\nstring such as `Hindi|English`.\n"},"__post_call_actions":{"allOf":[{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}}],"description":"Post-call actions for this session only, in the same shape\nas `post_call_actions` on agent create. Email and webhook\nonly. They replace the agent's own post-call actions for\nthis session. Items that cannot be used are skipped and\nlisted in `post_call_actions_ignored`.\n"}}},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
106
106
  method: "post",
107
107
  pathTemplate: "/sessions/create",
108
108
  executionParameters: [],
@@ -128,7 +128,8 @@ request details.
128
128
  name: "createAgent",
129
129
  description: `Create a new agent with the provided configuration. The full
130
130
  config supports transcriber, model, voice, web search, transfer,
131
- end-call conditions, post-call actions (email + webhook),
131
+ end-call conditions, post-call actions (email, webhook, Omni CRM,
132
+ Cloud WhatsApp, or a workflow),
132
133
  ambient background track, initial ringing sound, and multilingual support.
133
134
 
134
135
  > **Voicemail detection is an access-gated feature** that we turn on per
@@ -137,10 +138,10 @@ account. If it isn't enabled for yours yet,
137
138
  before configuring the \`voicemail\` object.
138
139
 
139
140
  (Tags: Agents)`,
140
- inputSchema: {"type":"object","properties":{"requestBody":{"allOf":[{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent.","example":"Customer Support Agent"},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call.","example":"Hello! How can I help you today?"},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"},"example":{"customer_name":"Jane Doe","order_id":"ORD-12345"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown.","example":"Purpose"},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content.","example":"This agent helps customers with product inquiries and support issues."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.","example":"America/New_York"},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use.","example":"deepgram_stream"},"model":{"type":"string","enum":["nova-3","nova-2"],"description":"The model to use for transcription (required when provider is `deepgram_stream`).","example":"nova-3"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n","example":"en-US"},"silence_timeout_ms":{"type":"integer","description":"Silence timeout in milliseconds.","example":400},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"integer","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption.","example":2},"max_call_duration_in_sec":{"type":"integer","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached.","example":600},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. The current catalog is returned by the LLM providers list.","example":"gpt-4.1-mini"},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0).","example":0.7}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it.","example":"eleven_labs"},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.","example":"JBFqnCBsd6RMkjVDRZzb"},"model":{"type":"string","description":"TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n","example":"sonic-3.5"},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo"],"description":"The search provider to use.","example":"DuckDuckGo"}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends. Configure email, webhook, or both.","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]},"example":["completed","failed"]}}}}},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`.","example":"+15551234567"},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option.","example":"Transfer if the customer asks to speak with a human."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer.","example":"Please hold while I connect you to one of our agents."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.","example":"End the call once the customer's issue is resolved."},"message":{"type":"string","description":"What the agent says before hanging up.","example":"Thank you for contacting us. Have a great day!"},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`.","example":"End the call politely in the same language the user is speaking."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"},"example":["English (India)","Hindi"]}}},{"type":"object","required":["name","welcome_message","context_breakdown"]}],"description":"The JSON request body."}},"required":["requestBody"]},
141
+ inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","maxLength":255,"description":"Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n"},"requestBody":{"allOf":[{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent.","example":"Customer Support Agent"},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call.","example":"Hello! How can I help you today?"},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"},"example":{"customer_name":"Jane Doe","order_id":"ORD-12345"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown.","example":"Purpose"},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content.","example":"This agent helps customers with product inquiries and support issues."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.","example":"America/New_York"},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use.","example":"deepgram_stream"},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n","example":"nova-3"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n","example":"en-US"},"silence_timeout_ms":{"type":"integer","description":"Silence timeout in milliseconds.","example":400},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"integer","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption.","example":2},"max_call_duration_in_sec":{"type":"integer","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached.","example":600},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. The current catalog is returned by the LLM providers list.","example":"gpt-4.1-mini"},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0).","example":0.7}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it.","example":"eleven_labs"},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.","example":"JBFqnCBsd6RMkjVDRZzb"},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use.","example":"DuckDuckGo"}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`.","example":"+15551234567"},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option.","example":"Transfer if the customer asks to speak with a human."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer.","example":"Please hold while I connect you to one of our agents."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true.","example":"End the call once the customer's issue is resolved."},"message":{"type":"string","description":"What the agent says before hanging up.","example":"Thank you for contacting us. Have a great day!"},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`.","example":"End the call politely in the same language the user is speaking."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"},"example":["English (India)","Hindi"]}}},{"type":"object","required":["name","context_breakdown"]}],"description":"The JSON request body."}},"required":["requestBody"]},
141
142
  method: "post",
142
143
  pathTemplate: "/agents/create",
143
- executionParameters: [],
144
+ executionParameters: [{"name":"Idempotency-Key","in":"header"}],
144
145
  requestBodyContentType: "application/json",
145
146
  securityRequirements: [{"BearerAuth":[]}],
146
147
  tags: ["Agents"],
@@ -148,7 +149,7 @@ before configuring the \`voicemail\` object.
148
149
  }],
149
150
  ["getAgent", {
150
151
  name: "getAgent",
151
- 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.
152
+ description: `Get details of a specific agent by ID. The response also includes a \`can_publish\` boolean showing whether [version history](/docs/api-reference/agents/listAgentVersions) is turned on for the agent's organization.
152
153
  (Tags: Agents)`,
153
154
  inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."}},"required":["agent_id"]},
154
155
  method: "get",
@@ -163,9 +164,11 @@ before configuring the \`voicemail\` object.
163
164
  name: "updateAgent",
164
165
  description: `Update an existing agent. Send only the fields you want to change.
165
166
 
167
+ \`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\`.
168
+
166
169
  > **Voicemail detection is an access-gated feature** that we turn on per account. If it isn't enabled for yours yet, [request access](https://omnidim.io/contact-us?reason=product&lock=1) before configuring the \`voicemail\` object below.
167
170
  (Tags: Agents)`,
168
- inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"requestBody":{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent."},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call."},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown."},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it."},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use."},"model":{"type":"string","enum":["nova-3","nova-2"],"description":"The model to use for transcription (required when provider is `deepgram_stream`)."},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n"},"silence_timeout_ms":{"type":"number","description":"Silence timeout in milliseconds."},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"number","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption."},"max_call_duration_in_sec":{"type":"number","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached."},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. The current catalog is returned by the LLM providers list."},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0)."}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it."},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it."},"model":{"type":"string","description":"TTS model identifier. Only consumed when `provider` is\n`cartesia` (e.g. `sonic-3.5`). For ElevenLabs and other\nproviders the model is implied by `voice_id` and this\nfield is ignored.\n"},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo"],"description":"The search provider to use."}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends. Configure email, webhook, or both.","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"}},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]}}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload."},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no_answer","busy","cancelled"]}}}}}},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`."},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true."},"message":{"type":"string","description":"What the agent says before hanging up."},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"}}}}},"required":["agent_id","requestBody"]},
171
+ inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"requestBody":{"type":"object","description":"Agent configuration.","properties":{"name":{"type":"string","description":"Name for the agent."},"welcome_message":{"type":"string","description":"Initial message the agent will say when answering a call."},"is_welcome_message_dynamic":{"type":"boolean","description":"When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written."},"is_welcome_message_interruption":{"type":"boolean","description":"Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening."},"is_interruption_allowed":{"type":"boolean","description":"Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call."},"dynamic_variables":{"type":"object","description":"Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n","additionalProperties":{"type":"string"}},"context_breakdown":{"type":"array","description":"List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.","items":{"type":"object","required":["title","body"],"properties":{"title":{"type":"string","description":"Title of the breakdown."},"body":{"type":"string","description":"Body of the breakdown, the detailed prompt content."},"is_enabled":{"type":"boolean","default":true,"description":"Whether this section is included in the prompt."}}}},"call_type":{"type":"string","enum":["Incoming","Outgoing"],"description":"Call type of the assistant."},"timezone":{"type":"string","description":"IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it."},"transcriber":{"type":"object","description":"Configuration for the speech-to-text transcriber.","properties":{"provider":{"type":"string","enum":["deepgram_stream","cartesia","sarvam","azure_stream","soniox"],"description":"The speech-to-text provider to use."},"model":{"type":"string","description":"Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n"},"language":{"type":"string","description":"Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n"},"silence_timeout_ms":{"type":"number","description":"Silence timeout in milliseconds."},"should_apply_noise_reduction":{"type":"boolean","description":"Reduce background noise on the inbound audio stream before transcription."},"interruption_min_words":{"type":"number","minimum":1,"description":"Minimum number of words the caller must say before their speech is treated as an interruption."},"max_call_duration_in_sec":{"type":"number","minimum":1,"description":"Hard upper bound on call length in seconds. The agent will end the call once this is reached."},"first_ideal_message":{"type":"string","description":"First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n"},"is_first_ideal_message_dynamic":{"type":"boolean","description":"When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"second_ideal_message":{"type":"string","description":"Second nudge spoken if silence continues after the first."},"is_second_ideal_message_dynamic":{"type":"boolean","description":"When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call."},"numerals":{"type":"boolean","description":"Convert numbers from words to digits."},"punctuate":{"type":"boolean","description":"Add punctuation to the transcript."},"smart_format":{"type":"boolean","description":"Apply smart formatting to the transcript."},"diarize":{"type":"boolean","description":"Identify different speakers in the transcript."}}},"model":{"type":"object","description":"Configuration for the language model.","properties":{"model":{"type":"string","enum":["azure-gpt-4.1-mini","azure-gpt-4.1-nano","azure-gpt-4o","azure-gpt-4o-mini","gemini-2.5-flash","gemini-2.5-flash-lite","gpt-3.5-turbo","gpt-4.1-mini","gpt-4.1-nano","gpt-4o","gpt-4o-mini","gpt-5.1","llama-3.3-70b-versatile"],"description":"The language model to use. The current catalog is returned by the LLM providers list."},"temperature":{"type":"number","minimum":0,"maximum":1,"description":"Controls randomness in the model's output (0.0 to 1.0)."}}},"voice":{"type":"object","description":"Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently.","dependentRequired":{"provider":["voice_id"]},"properties":{"provider":{"type":"string","enum":["eleven_labs","google","cartesia","sarvam"],"description":"The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it."},"voice_id":{"type":"string","description":"The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it."},"speech_speed":{"type":"number","minimum":0.5,"maximum":2,"default":1,"description":"Playback speed multiplier for the agent's voice. 1.0 is normal speed."}}},"web_search":{"type":"object","description":"Configuration for web search capabilities.","properties":{"enabled":{"type":"boolean","description":"Enable or disable web search functionality."},"provider":{"type":"string","enum":["DuckDuckGo","openAI"],"description":"The search provider to use."}}},"post_call_actions":{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"}},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload."},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload."},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}},"transfer":{"type":"object","description":"Conditional call transfer to a human agent or another number.","properties":{"enabled":{"type":"boolean"},"transfer_options":{"type":"array","description":"Where to transfer the call and under what condition. The first matching condition wins. In an agent update, sending this list replaces all saved options. Omit it to keep them unchanged, or send an empty array to clear them.","items":{"type":"object","required":["number","transfer_condition","transfer_message"],"properties":{"number":{"type":"string","description":"Primary phone number to transfer to. Include country code with leading `+`."},"type":{"type":"string","enum":["static","dynamic"],"default":"static","description":"`static` transfers to `number`. `dynamic` lets the agent\npick a number at runtime based on the conversation.\n"},"backup_numbers":{"type":"array","description":"Fallback numbers tried if the primary is unreachable.","items":{"type":"string"}},"transfer_condition":{"type":"string","description":"Natural-language condition that triggers this transfer option."},"transfer_message":{"type":"string","description":"Message the agent says to the caller before executing the transfer."}}}}}},"end_call":{"type":"object","description":"Hang up automatically when a condition is met.","properties":{"enabled":{"type":"boolean"},"condition":{"type":"string","description":"Natural-language condition that triggers ending the call. Only evaluated when `enabled` is true."},"message":{"type":"string","description":"What the agent says before hanging up."},"message_type":{"type":"string","enum":["static","prompt"],"description":"`static` speaks `message` verbatim. `prompt` treats\n`message_prompt` as an LLM instruction and generates a\nfresh closing line each call (useful for matching the\ncaller's language and tone).\n"},"message_prompt":{"type":"string","description":"LLM prompt used to generate the closing line when `message_type` is `prompt`."}}},"background_track":{"type":"object","description":"Ambient background noise that plays under the agent's voice.","properties":{"enabled":{"type":"boolean","description":"Whether to mix the ambient track under the agent's audio."},"name":{"type":"string","enum":["call_center","filler","office","office_1","restaurant"],"description":"Ambient track to mix under the agent."},"volume":{"type":"number","minimum":0,"maximum":1,"default":0.2,"description":"Volume level on a 0–1 scale. Default 0.2."},"tts_volume_reduction":{"type":"number","minimum":0,"maximum":1,"description":"Amount to drop the agent's TTS volume while the ambient track plays, on a 0–1 scale. Helps the voice cut through without raising the overall mix."}}},"initial_ringing_sound_enabled":{"type":"boolean","description":"Plays a ringing tone after the call is picked up, until the agent starts speaking."},"voicemail":{"type":"object","description":"Voicemail / answering-machine handling for outbound calls. Set this with the nested object shown here; the agent object returns these values as the flat fields `voicemail_enabled` and `voicemail_message`. Voicemail detection is an access-gated feature. If it isn't enabled for your account, [request access](https://omnidim.io/contact-us?reason=product&lock=1).","properties":{"enabled":{"type":"boolean","description":"Detect voicemail and leave your message instead of speaking to a machine."},"message":{"type":"string","description":"Message to leave when voicemail is detected."}}},"languages":{"type":"array","description":"Languages the agent should support. Pass each language as a display-name string exactly as it appears in the dashboard's language picker. Unrecognized names are skipped.","items":{"type":"string"}}}}},"required":["agent_id","requestBody"]},
169
172
  method: "put",
170
173
  pathTemplate: "/agents/{agent_id}",
171
174
  executionParameters: [{"name":"agent_id","in":"path"}],
@@ -187,11 +190,76 @@ before configuring the \`voicemail\` object.
187
190
  tags: ["Agents"],
188
191
  deprecated: false
189
192
  }],
193
+ ["listPostCallActions", {
194
+ name: "listPostCallActions",
195
+ description: `List every post-call action on the agent, each with its own \`id\`.
196
+ (Tags: Agents)`,
197
+ inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."}},"required":["agent_id"]},
198
+ method: "get",
199
+ pathTemplate: "/agents/{agent_id}/post-call-actions",
200
+ executionParameters: [{"name":"agent_id","in":"path"}],
201
+ requestBodyContentType: undefined,
202
+ securityRequirements: [{"BearerAuth":[]}],
203
+ tags: ["Agents"],
204
+ deprecated: false
205
+ }],
206
+ ["addPostCallAction", {
207
+ name: "addPostCallAction",
208
+ 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.
209
+ (Tags: Agents)`,
210
+ 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"]},
211
+ method: "post",
212
+ pathTemplate: "/agents/{agent_id}/post-call-actions",
213
+ executionParameters: [{"name":"agent_id","in":"path"},{"name":"Idempotency-Key","in":"header"}],
214
+ requestBodyContentType: "application/json",
215
+ securityRequirements: [{"BearerAuth":[]}],
216
+ tags: ["Agents"],
217
+ deprecated: false
218
+ }],
219
+ ["deletePostCallAction", {
220
+ name: "deletePostCallAction",
221
+ description: `Remove one post-call action from the agent. The agent's other actions are not changed.
222
+ (Tags: Agents)`,
223
+ 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"]},
224
+ method: "delete",
225
+ pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
226
+ executionParameters: [{"name":"agent_id","in":"path"},{"name":"action_id","in":"path"}],
227
+ requestBodyContentType: undefined,
228
+ securityRequirements: [{"BearerAuth":[]}],
229
+ tags: ["Agents"],
230
+ deprecated: false
231
+ }],
232
+ ["updatePostCallAction", {
233
+ name: "updatePostCallAction",
234
+ description: `Change fields of one post-call action. Fields you don't send keep their value. The \`type\` cannot change.
235
+ (Tags: Agents)`,
236
+ 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"]},
237
+ method: "patch",
238
+ pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
239
+ executionParameters: [{"name":"agent_id","in":"path"},{"name":"action_id","in":"path"}],
240
+ requestBodyContentType: "application/json",
241
+ securityRequirements: [{"BearerAuth":[]}],
242
+ tags: ["Agents"],
243
+ deprecated: false
244
+ }],
245
+ ["listIntegrations", {
246
+ name: "listIntegrations",
247
+ 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.
248
+ (Tags: Integrations)`,
249
+ inputSchema: {"type":"object","properties":{}},
250
+ method: "get",
251
+ pathTemplate: "/integrations",
252
+ executionParameters: [],
253
+ requestBodyContentType: undefined,
254
+ securityRequirements: [{"BearerAuth":[]}],
255
+ tags: ["Integrations"],
256
+ deprecated: false
257
+ }],
190
258
  ["listAgentVersions", {
191
259
  name: "listAgentVersions",
192
260
  description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
193
261
  (Tags: Agents)`,
194
- inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"pageno":{"type":"integer","minimum":1,"default":1,"description":"Page number for pagination."},"pagesize":{"type":"integer","minimum":1,"default":30,"maximum":150,"description":"Number of items per page (max 150)."},"search":{"type":"string","description":"Filter versions whose name matches this substring (case-insensitive)."},"kind":{"type":"string","enum":["manual","auto","system"],"description":"Filter versions by kind."}},"required":["agent_id"]},
262
+ inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"pageno":{"type":"integer","minimum":1,"default":1,"description":"Page number for pagination."},"pagesize":{"type":"integer","minimum":1,"default":30,"maximum":150,"description":"Number of items per page (max 150)."},"search":{"type":"string","description":"Filter versions whose name matches this substring (case-insensitive)."},"kind":{"type":"string","enum":["manual","system"],"description":"Filter versions by kind."}},"required":["agent_id"]},
195
263
  method: "get",
196
264
  pathTemplate: "/agents/{agent_id}/versions",
197
265
  executionParameters: [{"name":"agent_id","in":"path"},{"name":"pageno","in":"query"},{"name":"pagesize","in":"query"},{"name":"search","in":"query"},{"name":"kind","in":"query"}],
@@ -256,11 +324,11 @@ before configuring the \`voicemail\` object.
256
324
  name: "restoreAgentVersion",
257
325
  description: `Restore a version onto the live agent. Your current setup is saved first as a backup version, so restoring is undoable. Configuration is brought back; any knowledge files or integrations that were deleted since this version was saved can't be re-linked, and are reported in \`skipped\`.
258
326
  (Tags: Agents)`,
259
- inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"version_number":{"type":"number","description":"The version number, as returned in `version_number` from the list or save endpoints."}},"required":["agent_id","version_number"]},
327
+ inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."},"version_number":{"type":"number","description":"The version number, as returned in `version_number` from the list or save endpoints."},"requestBody":{"type":"object","properties":{},"description":"The JSON request body."}},"required":["agent_id","version_number"]},
260
328
  method: "post",
261
329
  pathTemplate: "/agents/{agent_id}/versions/{version_number}/restore",
262
330
  executionParameters: [{"name":"agent_id","in":"path"},{"name":"version_number","in":"path"}],
263
- requestBodyContentType: undefined,
331
+ requestBodyContentType: "application/json",
264
332
  securityRequirements: [{"BearerAuth":[]}],
265
333
  tags: ["Agents"],
266
334
  deprecated: false
@@ -271,7 +339,7 @@ before configuring the \`voicemail\` object.
271
339
  phone number must include a country code with a leading plus.
272
340
 
273
341
  (Tags: Calls)`,
274
- inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","to_number"],"properties":{"agent_id":{"type":"number","description":"The ID of the agent that will handle the call."},"to_number":{"type":"string","description":"The phone number to call. Must include country code (e.g., +15551234567)."},"from_number_id":{"type":"number","description":"Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number."},"call_context":{"type":"object","description":"Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.","additionalProperties":true},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
342
+ inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["agent_id","to_number"],"properties":{"agent_id":{"type":"number","description":"The ID of the agent that will handle the call."},"to_number":{"type":"string","description":"The phone number to call. Must include country code (e.g., +15551234567)."},"from_number_id":{"type":"number","description":"Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number."},"call_context":{"type":"object","description":"Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.","additionalProperties":true},"metadata":{"type":"object","additionalProperties":true,"description":"Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n"},"__languages":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}],"description":"Languages this call runs in, replacing the agent's configured\nlist for this call only. The first entry is the language the\ncall opens in. Send an array, or a pipe-separated string such\nas `Hindi|English`. Names the platform does not recognize are\nskipped and listed in `languages_ignored`.\n"},"__post_call_actions":{"allOf":[{"type":"object","description":"Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n","properties":{"email":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","description":"Email addresses that should receive the notification.","items":{"type":"string","format":"email"},"example":["support@example.com"]},"include":{"type":"array","description":"Which sections to include in the email body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the email.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","voicemail_detected"]}}},"webhook":{"type":"object","properties":{"enabled":{"type":"boolean"},"url":{"type":"string","format":"uri","description":"Endpoint that receives a POST with the call payload.","example":"https://your-webhook-endpoint.com/omnidim-callback"},"include":{"type":"array","description":"Which sections to include in the webhook body.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for the webhook.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]},"example":["completed","failed"]}}},"omni_crm":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Save the call to Omni CRM."}]},"cloud_whatsapp":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Send a Cloud WhatsApp template message after the call.","properties":{"phone_number_id":{"type":"integer","description":"The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n"},"template_id":{"type":"integer","description":"An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n"},"template_variables":{"type":"array","description":"Which extracted variable fills each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The key of the extracted variable whose value fills this placeholder.","example":"customer_name"}}}},"templates":{"type":"array","description":"One or more templates to send, each with its variable mapping.","items":{"type":"object","description":"One Cloud WhatsApp template to send after the call.","properties":{"template_id":{"type":"integer","description":"An approved template on the chosen number."},"usage_description":{"type":"string","description":"When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n","example":"Send when the caller books an appointment."},"always_send":{"type":"boolean","description":"Send this template after every call, whichever templates the model chooses."},"variable_mappings":{"type":"array","description":"How to fill each template placeholder.","items":{"type":"object","properties":{"index":{"type":"string","description":"The placeholder number, as a string.","example":"1"},"extracted_var":{"type":"string","description":"The extracted variable whose value fills this placeholder."},"static_value":{"type":"string","description":"A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n"},"mode":{"type":"string","enum":["variable","static"],"description":"Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n"},"fallback_value":{"type":"string","description":"The value to use when the variable is not extracted."}}}}}}}}}]},"workflow":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Trigger a workflow after the call.","properties":{"workflow_id":{"type":"integer","description":"The id of the workflow to run."}}}]},"google_sheets":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Google Sheets integration."},"spreadsheet_id":{"type":"string","description":"Required. The id in the sheet's URL, the part after `/d/`."},"spreadsheet_name":{"type":"string"},"worksheet_name":{"type":"string","description":"The tab to append to. Defaults to `Sheet1`."}}}]},"slack":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Slack integration."},"channel_id":{"type":"string","description":"The channel id. Send this or `channel_name`."},"channel_name":{"type":"string","description":"The channel name. Send this or `channel_id`."}}}]},"salesforce":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Salesforce integration."},"object_name":{"type":"string","enum":["Lead","Contact","Account","Opportunity","Case","Task","Product"],"description":"Defaults to `Lead`."}}}]},"hubspot":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your HubSpot integration."},"object_name":{"type":"string","enum":["contact","company","deal","ticket"],"description":"Required."}}}]},"zoho_bigin":{"allOf":[{"type":"object","description":"Settings every post-call channel shares.","properties":{"enabled":{"type":"boolean"},"include":{"type":"array","description":"Which sections to include in this action.","items":{"type":"string","enum":["summary","extracted_variables","fullConversation","sentiment"]}},"extracted_variables":{"type":"array","description":"Variables the model should pull out of the conversation for this action.","items":{"type":"object","required":["key","prompt"],"properties":{"key":{"type":"string","description":"Unique identifier for the variable in the post-call payload.","example":"customer_issue"},"prompt":{"type":"string","description":"Instruction for the model on what to pull out of the conversation.","example":"Identify the main issue the customer is experiencing."}}}},"trigger_call_statuses":{"type":"array","description":"Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n","items":{"type":"string","enum":["completed","voicemail_detected","failed","no-answer","busy","canceled"]}}}},{"type":"object","description":"Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n","properties":{"integration_id":{"type":"integer","description":"Required. The id of your Zoho Bigin integration."},"create_call_log":{"type":"boolean","description":"Log the call. Defaults to true."},"update_contact":{"type":"boolean","description":"Update a matching contact with what the call captured. Defaults to true."},"create_contact":{"type":"boolean","description":"Create a contact when no contact matches. Defaults to true."}}}]}}}],"description":"Post-call actions for this call only, in the same shape as\n`post_call_actions` on agent create. Email and webhook only.\nThey replace the agent's own post-call actions for this call;\nthe agent is not changed. Items that cannot be used are\nskipped and listed in `post_call_actions_ignored`, and the\ncall still goes out. Can also be sent inside `call_context`.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
275
343
  method: "post",
276
344
  pathTemplate: "/calls/dispatch",
277
345
  executionParameters: [],
@@ -323,11 +391,11 @@ phone number must include a country code with a leading plus.
323
391
  name: "createBulkCall",
324
392
  description: `Create a new bulk-call campaign. Only name, phone_number_id and a
325
393
  contact_list are needed to dial a list now; every other field adds
326
- one behaviour on top (drafts, rotation, filtering, scheduling,
394
+ one behavior on top (drafts, rotation, filtering, scheduling,
327
395
  retries, dynamic feeding).
328
396
 
329
397
  The guide below the field reference walks the whole journey: the
330
- first campaign and its response, each behaviour with a working
398
+ first campaign and its response, each behavior with a working
331
399
  request, every refusal message with its fix, and the endpoints that
332
400
  operate a campaign once it runs.
333
401
 
@@ -389,7 +457,7 @@ operating hours.
389
457
  }],
390
458
  ["cancelBulkCall", {
391
459
  name: "cancelBulkCall",
392
- description: `Cancel a bulk-call campaign.
460
+ description: `Cancel a scheduled bulk-call campaign. A campaign that is already running, or is still a draft, is refused.
393
461
  (Tags: Bulk calls)`,
394
462
  inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
395
463
  method: "delete",
@@ -517,9 +585,10 @@ with different variables, it is called twice, because two rows for one
517
585
  number usually means two real reasons to call.
518
586
 
519
587
  Rows that fail validation are reported in \`rejected\` and the rest are
520
- still added, so a single bad number does not lose the batch. If the
521
- campaign has \`call_conditions\`, rows that do not match are added with
522
- status \`Skipped\`.
588
+ still added, so a single bad number does not lose the batch. A row that
589
+ is missing a column the campaign's \`call_conditions\` need is reported in
590
+ \`rejected\`; the condition values themselves are not evaluated on this
591
+ route.
523
592
 
524
593
  (Tags: Bulk calls)`,
525
594
  inputSchema: {"type":"object","properties":{"campaign_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","required":["contacts"],"properties":{"contacts":{"type":"array","maxItems":1000,"description":"Each row needs `to_number`. Note this differs from the\n`contact_list` on Create bulk call, which uses\n`phone_number` and takes loose keys: here the variables go\nin an explicit `custom_variables` object.\n","items":{"type":"object","required":["to_number"],"properties":{"to_number":{"type":"string","description":"Number to call, in international format."},"custom_variables":{"type":"object","description":"Passed to the agent as context for this call, so it\ncan use them in the conversation.\n","additionalProperties":true},"metadata":{"type":"object","description":"Stored with the contact and returned on its row in\nBulk call results. Not shown to the agent.\n","additionalProperties":true}}}}},"description":"The JSON request body."}},"required":["campaign_id","requestBody"]},
@@ -541,11 +610,11 @@ when everything is in place. A campaign that is already running,
541
610
  scheduled, or finished cannot be started.
542
611
 
543
612
  (Tags: Bulk calls)`,
544
- inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
613
+ inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{},"description":"The JSON request body."}},"required":["bulk_call_id"]},
545
614
  method: "post",
546
615
  pathTemplate: "/calls/bulk_call/{bulk_call_id}/start",
547
616
  executionParameters: [{"name":"bulk_call_id","in":"path"}],
548
- requestBodyContentType: undefined,
617
+ requestBodyContentType: "application/json",
549
618
  securityRequirements: [{"BearerAuth":[]}],
550
619
  tags: ["Bulk calls"],
551
620
  deprecated: false
@@ -577,7 +646,7 @@ or when the reason was on your side (a bad window, a number that was
577
646
  having a bad day). Retried contacts keep their original variables.
578
647
 
579
648
  (Tags: Bulk calls)`,
580
- inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{"retry_strategy":{"type":"string","default":"all","description":"Which contacts to re-queue. `all` takes everything that did\nnot connect.\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"]},
649
+ inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."},"requestBody":{"type":"object","properties":{"retry_strategy":{"type":"string","default":"all","description":"Which contacts to re-queue. `all` takes everything that did\nnot connect. `specific` re-queues only the statuses listed\nin `failure_reasons`.\n"},"failure_reasons":{"type":"array","description":"Statuses to re-queue. Read only when `retry_strategy` is\n`specific`; for example `no-answer` and `busy`. Ignored when\n`retry_strategy` is `all`.\n","items":{"type":"string"}}},"description":"The JSON request body."}},"required":["bulk_call_id"]},
581
650
  method: "post",
582
651
  pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
583
652
  executionParameters: [{"name":"bulk_call_id","in":"path"}],
@@ -721,7 +790,7 @@ carrier its results came from, and that is the carrier a purchase has
721
790
  to pass.
722
791
 
723
792
  (Tags: Phone numbers)`,
724
- inputSchema: {"type":"object","properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region to search in. `IN` and `US` both serve numbers. Which\nregions answer is configuration, so a region with no carrier\nenabled returns `404 not_available` rather than an empty list.\n"},"carrier":{"type":"string","description":"Which carrier to use. **Always required** in a region that has\none, however few it holds, so that adding a carrier is never a\nbreaking change.\n\nRegion `IN` has two: `carrier-1` stocks landline numbers (city\ncodes 11, 12 and 80), `carrier-2-new` stocks mobile numbers (94\nand 79 series). Region `US` has one: `carrier-us`, US local\nnumbers by area code.\n\nOmitting it returns `409 carrier_required` listing the carriers\nwith what each one stocks, so an integration can discover them at\nruntime rather than hard-coding this list.\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"]},
793
+ inputSchema: {"type":"object","properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region to search in. `IN` and `US` both serve numbers. Which\nregions answer is configuration, so a region with no carrier\nenabled returns `404 not_available` rather than an empty list.\n"},"carrier":{"type":"string","description":"Which carrier's stock to search: carriers in a region do not sell\nthe same numbers. Required where a region has more than one\ncarrier; omitting it there returns `409 carrier_required` naming\nthe region's carriers and what each one stocks.\n"},"pattern":{"type":"string","description":"Digits or prefix to match within the number."},"page":{"type":"number","minimum":1,"default":1,"description":"Page of results to return."},"limit":{"type":"number","minimum":1,"maximum":150,"default":20,"description":"Results per page."}},"required":["region"]},
725
794
  method: "get",
726
795
  pathTemplate: "/phone_number/search",
727
796
  executionParameters: [{"name":"region","in":"query"},{"name":"carrier","in":"query"},{"name":"pattern","in":"query"},{"name":"page","in":"query"},{"name":"limit","in":"query"}],
@@ -737,7 +806,7 @@ rental comes out of your wallet and the number is added to your
737
806
  account, ready to attach to an agent.
738
807
 
739
808
  (Tags: Phone numbers)`,
740
- inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"Your own unique key for this purchase, for example a\nfresh UUID. Strongly recommended: it is what makes a\nretry safe.\n"},"requestBody":{"type":"object","required":["region","carrier","phone_number"],"properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region the number belongs to."},"phone_number":{"type":"string","description":"The number to buy, as returned by the search operation."},"carrier":{"type":"string","description":"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nAlways required. Region `IN` has `carrier-1` (landline) and\n`carrier-2-new` (mobile); region `US` has `carrier-us`.\nOmitting it returns `409 carrier_required` listing them.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
809
+ inputSchema: {"type":"object","properties":{"Idempotency-Key":{"type":"string","description":"Your own unique key for this purchase, for example a\nfresh UUID. Strongly recommended: it is what makes a\nretry safe.\n"},"requestBody":{"type":"object","required":["region","carrier","phone_number"],"properties":{"region":{"type":"string","enum":["IN","US"],"description":"Region the number belongs to."},"phone_number":{"type":"string","description":"The number to buy, as returned by the search operation."},"carrier":{"type":"string","description":"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nRequired where the region has more than one carrier;\nomitting it there returns `409 carrier_required`.\n"}},"description":"The JSON request body."}},"required":["requestBody"]},
741
810
  method: "post",
742
811
  pathTemplate: "/phone_number/purchase",
743
812
  executionParameters: [{"name":"Idempotency-Key","in":"header"}],
@@ -764,7 +833,7 @@ released.
764
833
  }],
765
834
  ["attachPhoneNumber", {
766
835
  name: "attachPhoneNumber",
767
- description: `Attach an account-owned phone number to an existing agent.
836
+ description: `Attach a phone number to an existing agent.
768
837
  (Tags: Phone numbers)`,
769
838
  inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number_id","agent_id"],"properties":{"phone_number_id":{"type":"number","description":"ID of the phone number to attach."},"agent_id":{"type":"number","description":"ID of the agent to attach the phone number to."}},"description":"The JSON request body."}},"required":["requestBody"]},
770
839
  method: "post",
@@ -777,7 +846,7 @@ released.
777
846
  }],
778
847
  ["detachPhoneNumber", {
779
848
  name: "detachPhoneNumber",
780
- description: `Detach a phone number from its associated agent.
849
+ description: `Detach a phone number from its agent.
781
850
  (Tags: Phone numbers)`,
782
851
  inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number_id"],"properties":{"phone_number_id":{"type":"number","description":"ID of the phone number to detach."}},"description":"The JSON request body."}},"required":["requestBody"]},
783
852
  method: "post",
@@ -818,7 +887,7 @@ released.
818
887
  name: "importSipTrunk",
819
888
  description: `Import a phone number associated with a SIP trunk.
820
889
  (Tags: Phone numbers)`,
821
- inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number","sip_host","sip_trunk_name"],"properties":{"phone_number":{"type":"string","description":"Phone number in E.164 format (starting with `+`)."},"sip_host":{"type":"string","description":"SIP server hostname or IP."},"sip_trunk_name":{"type":"string","description":"Name for this SIP trunk (must be unique within your account)."},"name":{"type":"string","description":"Optional friendly name for the imported number."},"sip_port":{"type":"number","default":5060,"description":"SIP server port."},"sip_username":{"type":"string","description":"SIP authentication username."},"sip_password":{"type":"string","format":"password","description":"SIP authentication password."},"sip_dial_prefix":{"type":"string","description":"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"]},
890
+ inputSchema: {"type":"object","properties":{"requestBody":{"type":"object","required":["phone_number","sip_host","sip_trunk_name"],"properties":{"phone_number":{"type":"string","description":"Phone number in E.164 format (starting with `+`)."},"sip_host":{"type":"string","description":"SIP server hostname or IP."},"sip_trunk_name":{"type":"string","description":"Name for this SIP trunk (must be unique within your account)."},"name":{"type":"string","description":"Optional friendly name for the imported number."},"sip_port":{"type":"number","default":5060,"description":"SIP server port."},"sip_username":{"type":"string","description":"SIP authentication username."},"sip_password":{"type":"string","format":"password","description":"SIP authentication password."},"sip_dial_prefix":{"type":"string","description":"Digits added in front of every number dialed through this trunk. See `sip_strip_country_code` for how it combines with the country code."},"sip_strip_country_code":{"type":"boolean","description":"When true, the country code is removed from every number dialed through this trunk. When omitted and `sip_dial_prefix` is set, the country code is removed, so send `false` to keep it."},"sip_strip_plus":{"type":"boolean","description":"When true, strips the leading `+` from the dialed number."}},"description":"The JSON request body."}},"required":["requestBody"]},
822
891
  method: "post",
823
892
  pathTemplate: "/phone_number/import/sip",
824
893
  executionParameters: [],
@@ -843,11 +912,12 @@ released.
843
912
  ["listVoices", {
844
913
  name: "listVoices",
845
914
  description: `Retrieve voices with filtering and pagination support. ElevenLabs
846
- supports advanced filtering by name, language, accent, and gender.
915
+ and Cartesia support advanced filtering by name, language, accent,
916
+ and gender.
847
917
  Other providers support basic pagination only.
848
918
 
849
919
  (Tags: Providers)`,
850
- inputSchema: {"type":"object","properties":{"provider":{"type":"string","enum":["eleven_labs","google","deepgram","cartesia","sarvam"],"description":"TTS provider to list voices from. Omit to list across all providers."},"search":{"type":"string","description":"Substring match against voice name or description. ElevenLabs 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."}}},
920
+ inputSchema: {"type":"object","properties":{"provider":{"type":"string","enum":["eleven_labs","google","deepgram","cartesia","sarvam","rime","playht","hume","inworld","smallest"],"description":"TTS provider to list voices from. Omit to list across all providers."},"search":{"type":"string","description":"Substring match against voice name or description. ElevenLabs and Cartesia."},"language":{"type":"string","description":"ISO language code (e.g. `en`, `hi`, `es`). ElevenLabs and Cartesia."},"accent":{"type":"string","description":"Accent label (e.g. `american`, `british`). ElevenLabs and Cartesia."},"gender":{"type":"string","enum":["male","female"],"description":"Filter voices by gender. ElevenLabs and Cartesia."},"page":{"type":"integer","minimum":1,"default":1,"description":"1-indexed page number."},"page_size":{"type":"integer","minimum":1,"default":30,"maximum":100,"description":"Voices per page. Capped at 100."}}},
851
921
  method: "get",
852
922
  pathTemplate: "/providers/voices",
853
923
  executionParameters: [{"name":"provider","in":"query"},{"name":"search","in":"query"},{"name":"language","in":"query"},{"name":"accent","in":"query"},{"name":"gender","in":"query"},{"name":"page","in":"query"},{"name":"page_size","in":"query"}],
@@ -908,6 +978,353 @@ Other providers support basic pagination only.
908
978
  tags: ["Providers"],
909
979
  deprecated: false
910
980
  }],
981
+ ["getAccountBalance", {
982
+ name: "getAccountBalance",
983
+ description: `Read your organization's wallet: the remaining balance, the minutes
984
+ it buys at your rates, your plan, your concurrency headroom, and
985
+ whether auto-recharge will refill it.
986
+
987
+ Use it before a campaign, or on a schedule, so you find out you are
988
+ low on credit from this endpoint rather than from a call failing
989
+ with \`402 payment_required\`.
990
+
991
+ The response always describes the organization the API key belongs
992
+ to. There is no parameter for reading another account; resellers
993
+ read a client's figures through the Reseller endpoints.
994
+
995
+ A balance at or below zero does not always mean calls will stop. An
996
+ organization on usage-based billing (\`plan.is_usage_based\`) keeps
997
+ placing calls and is metered to its payment method instead, so check
998
+ that flag before treating a zero balance as a stop condition.
999
+
1000
+ The API key's user needs Billing access in your organization. If
1001
+ you get a \`403\`, an administrator can grant it when Billing is
1002
+ enabled for your organization; when it is not, contact support.
1003
+
1004
+ (Tags: Account)`,
1005
+ inputSchema: {"type":"object","properties":{}},
1006
+ method: "get",
1007
+ pathTemplate: "/account/balance",
1008
+ executionParameters: [],
1009
+ requestBodyContentType: undefined,
1010
+ securityRequirements: [{"BearerAuth":[]}],
1011
+ tags: ["Account"],
1012
+ deprecated: false
1013
+ }],
1014
+ ["listClonedVoices", {
1015
+ name: "listClonedVoices",
1016
+ description: `Your cloned voices, oldest first, one cursor page at a time. Call it with
1017
+ no \`cursor\`, then pass back the \`next_cursor\` you were handed until it is
1018
+ \`null\`.
1019
+
1020
+ Once a voice is \`ready\`, its \`voice_id\` is the provider voice id to put
1021
+ in an agent's \`voice.voice_id\` with \`voice.provider: cartesia\`.
1022
+
1023
+ (Tags: Voice cloning)`,
1024
+ 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"}}},
1025
+ method: "get",
1026
+ pathTemplate: "/voices",
1027
+ executionParameters: [{"name":"limit","in":"query"},{"name":"cursor","in":"query"}],
1028
+ requestBodyContentType: undefined,
1029
+ securityRequirements: [{"BearerAuth":[]}],
1030
+ tags: ["Voice cloning"],
1031
+ deprecated: false
1032
+ }],
1033
+ ["createClonedVoice", {
1034
+ name: "createClonedVoice",
1035
+ description: `Clone a voice from an audio sample. The sample must be Base64 encoded and
1036
+ 1 KB to 25 MB. MP3, WAV and WebM are accepted; a non-audio body is
1037
+ refused.
1038
+
1039
+ Creation is asynchronous. This call returns \`202\` at once with
1040
+ \`status: processing\`. Poll \`GET /voices/{voice_id}\` until \`status\` is
1041
+ \`ready\` or \`failed\`, then use the \`voice_id\` in an agent's \`voice\` config with
1042
+ \`voice.provider: cartesia\`.
1043
+
1044
+ You must send \`consent: true\`: you confirm you have the right to clone
1045
+ this voice. The attestation is recorded against the clone.
1046
+
1047
+ Limits apply per user: 5 clones an hour, 20 a day, and 200 stored
1048
+ (processing plus ready). A request over a limit is refused with \`429\`.
1049
+
1050
+ (Tags: Voice cloning)`,
1051
+ 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"]},
1052
+ method: "post",
1053
+ pathTemplate: "/voices",
1054
+ executionParameters: [{"name":"Idempotency-Key","in":"header"}],
1055
+ requestBodyContentType: "application/json",
1056
+ securityRequirements: [{"BearerAuth":[]}],
1057
+ tags: ["Voice cloning"],
1058
+ deprecated: false
1059
+ }],
1060
+ ["getClonedVoice", {
1061
+ name: "getClonedVoice",
1062
+ description: `One cloned voice, including its creation \`status\`.
1063
+ (Tags: Voice cloning)`,
1064
+ inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
1065
+ method: "get",
1066
+ pathTemplate: "/voices/{voice_id}",
1067
+ executionParameters: [{"name":"voice_id","in":"path"}],
1068
+ requestBodyContentType: undefined,
1069
+ securityRequirements: [{"BearerAuth":[]}],
1070
+ tags: ["Voice cloning"],
1071
+ deprecated: false
1072
+ }],
1073
+ ["deleteClonedVoice", {
1074
+ name: "deleteClonedVoice",
1075
+ description: `Delete a cloned voice and remove it from the provider. A voice that is
1076
+ still \`processing\` cannot be deleted.
1077
+
1078
+ (Tags: Voice cloning)`,
1079
+ inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
1080
+ method: "delete",
1081
+ pathTemplate: "/voices/{voice_id}",
1082
+ executionParameters: [{"name":"voice_id","in":"path"}],
1083
+ requestBodyContentType: undefined,
1084
+ securityRequirements: [{"BearerAuth":[]}],
1085
+ tags: ["Voice cloning"],
1086
+ deprecated: false
1087
+ }],
1088
+ ["updateClonedVoice", {
1089
+ name: "updateClonedVoice",
1090
+ description: `Change the name, description or gender of a cloned voice.
1091
+ (Tags: Voice cloning)`,
1092
+ 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"]},
1093
+ method: "patch",
1094
+ pathTemplate: "/voices/{voice_id}",
1095
+ executionParameters: [{"name":"voice_id","in":"path"}],
1096
+ requestBodyContentType: "application/json",
1097
+ securityRequirements: [{"BearerAuth":[]}],
1098
+ tags: ["Voice cloning"],
1099
+ deprecated: false
1100
+ }],
1101
+ ["getClonedVoiceSample", {
1102
+ name: "getClonedVoiceSample",
1103
+ description: `Stream the generated mp3 sample of a cloned voice. Only the owner can
1104
+ fetch it. \`404\` (\`sample_not_ready\`) when no sample exists yet. The
1105
+ request needs your API key in the \`Authorization\` header.
1106
+
1107
+ (Tags: Voice cloning)`,
1108
+ inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
1109
+ method: "get",
1110
+ pathTemplate: "/voices/{voice_id}/sample",
1111
+ executionParameters: [{"name":"voice_id","in":"path"}],
1112
+ requestBodyContentType: undefined,
1113
+ securityRequirements: [{"BearerAuth":[]}],
1114
+ tags: ["Voice cloning"],
1115
+ deprecated: false
1116
+ }],
1117
+ ["regenerateClonedVoiceSample", {
1118
+ name: "regenerateClonedVoiceSample",
1119
+ description: `Regenerate the sample audio for a \`ready\` voice.
1120
+ (Tags: Voice cloning)`,
1121
+ inputSchema: {"type":"object","properties":{"voice_id":{"type":"number","description":"Id of the cloned voice."}},"required":["voice_id"]},
1122
+ method: "post",
1123
+ pathTemplate: "/voices/{voice_id}/sample",
1124
+ executionParameters: [{"name":"voice_id","in":"path"}],
1125
+ requestBodyContentType: undefined,
1126
+ securityRequirements: [{"BearerAuth":[]}],
1127
+ tags: ["Voice cloning"],
1128
+ deprecated: false
1129
+ }],
1130
+ ["listWorkflowNodeTypes", {
1131
+ name: "listWorkflowNodeTypes",
1132
+ 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.
1133
+
1134
+ (Tags: Workflows)`,
1135
+ 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."}}},
1136
+ method: "get",
1137
+ pathTemplate: "/workflow-node-types",
1138
+ executionParameters: [{"name":"q","in":"query"},{"name":"category","in":"query"}],
1139
+ requestBodyContentType: undefined,
1140
+ securityRequirements: [{"BearerAuth":[]}],
1141
+ tags: ["Workflows"],
1142
+ deprecated: false
1143
+ }],
1144
+ ["getWorkflowNodeType", {
1145
+ name: "getWorkflowNodeType",
1146
+ 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.
1147
+
1148
+ (Tags: Workflows)`,
1149
+ 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"]},
1150
+ method: "get",
1151
+ pathTemplate: "/workflow-node-types/{node_type}",
1152
+ executionParameters: [{"name":"node_type","in":"path"},{"name":"detail","in":"query"}],
1153
+ requestBodyContentType: undefined,
1154
+ securityRequirements: [{"BearerAuth":[]}],
1155
+ tags: ["Workflows"],
1156
+ deprecated: false
1157
+ }],
1158
+ ["listWorkflowFieldOptions", {
1159
+ name: "listWorkflowFieldOptions",
1160
+ 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.
1161
+
1162
+ (Tags: Workflows)`,
1163
+ 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"]},
1164
+ method: "get",
1165
+ pathTemplate: "/workflow-node-types/{node_type}/options/{field}",
1166
+ executionParameters: [{"name":"node_type","in":"path"},{"name":"field","in":"path"},{"name":"depends","in":"query"}],
1167
+ requestBodyContentType: undefined,
1168
+ securityRequirements: [{"BearerAuth":[]}],
1169
+ tags: ["Workflows"],
1170
+ deprecated: false
1171
+ }],
1172
+ ["listWorkflows", {
1173
+ name: "listWorkflows",
1174
+ 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\`.
1175
+
1176
+ (Tags: Workflows)`,
1177
+ 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."}}},
1178
+ method: "get",
1179
+ pathTemplate: "/workflows",
1180
+ executionParameters: [{"name":"limit","in":"query"},{"name":"cursor","in":"query"}],
1181
+ requestBodyContentType: undefined,
1182
+ securityRequirements: [{"BearerAuth":[]}],
1183
+ tags: ["Workflows"],
1184
+ deprecated: false
1185
+ }],
1186
+ ["createWorkflow", {
1187
+ name: "createWorkflow",
1188
+ 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.
1189
+
1190
+ (Tags: Workflows)`,
1191
+ 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"]},
1192
+ method: "post",
1193
+ pathTemplate: "/workflows",
1194
+ executionParameters: [],
1195
+ requestBodyContentType: "application/json",
1196
+ securityRequirements: [{"BearerAuth":[]}],
1197
+ tags: ["Workflows"],
1198
+ deprecated: false
1199
+ }],
1200
+ ["getWorkflow", {
1201
+ name: "getWorkflow",
1202
+ 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 \`********\`.
1203
+
1204
+ (Tags: Workflows)`,
1205
+ 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"]},
1206
+ method: "get",
1207
+ pathTemplate: "/workflows/{workflow_id}",
1208
+ executionParameters: [{"name":"workflow_id","in":"path"},{"name":"view","in":"query"}],
1209
+ requestBodyContentType: undefined,
1210
+ securityRequirements: [{"BearerAuth":[]}],
1211
+ tags: ["Workflows"],
1212
+ deprecated: false
1213
+ }],
1214
+ ["deleteWorkflow", {
1215
+ name: "deleteWorkflow",
1216
+ 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\`.
1217
+
1218
+ (Tags: Workflows)`,
1219
+ inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
1220
+ method: "delete",
1221
+ pathTemplate: "/workflows/{workflow_id}",
1222
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1223
+ requestBodyContentType: undefined,
1224
+ securityRequirements: [{"BearerAuth":[]}],
1225
+ tags: ["Workflows"],
1226
+ deprecated: false
1227
+ }],
1228
+ ["editWorkflow", {
1229
+ name: "editWorkflow",
1230
+ 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.
1231
+
1232
+ (Tags: Workflows)`,
1233
+ 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"]},
1234
+ method: "patch",
1235
+ pathTemplate: "/workflows/{workflow_id}",
1236
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1237
+ requestBodyContentType: "application/json",
1238
+ securityRequirements: [{"BearerAuth":[]}],
1239
+ tags: ["Workflows"],
1240
+ deprecated: false
1241
+ }],
1242
+ ["validateWorkflow", {
1243
+ name: "validateWorkflow",
1244
+ description: `Check the draft and list what blocks publish. It changes nothing. Call it after your edits and fix every error before \`publishWorkflow\`.
1245
+
1246
+ (Tags: Workflows)`,
1247
+ inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
1248
+ method: "post",
1249
+ pathTemplate: "/workflows/{workflow_id}/validate",
1250
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1251
+ requestBodyContentType: undefined,
1252
+ securityRequirements: [{"BearerAuth":[]}],
1253
+ tags: ["Workflows"],
1254
+ deprecated: false
1255
+ }],
1256
+ ["publishWorkflow", {
1257
+ name: "publishWorkflow",
1258
+ 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.
1259
+
1260
+ (Tags: Workflows)`,
1261
+ inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
1262
+ method: "post",
1263
+ pathTemplate: "/workflows/{workflow_id}/publish",
1264
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1265
+ requestBodyContentType: undefined,
1266
+ securityRequirements: [{"BearerAuth":[]}],
1267
+ tags: ["Workflows"],
1268
+ deprecated: false
1269
+ }],
1270
+ ["activateWorkflow", {
1271
+ name: "activateWorkflow",
1272
+ description: `Turn the published workflow on, so real events run it. Use it to resume a workflow you paused with \`deactivateWorkflow\`.
1273
+
1274
+ (Tags: Workflows)`,
1275
+ inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
1276
+ method: "post",
1277
+ pathTemplate: "/workflows/{workflow_id}/activate",
1278
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1279
+ requestBodyContentType: undefined,
1280
+ securityRequirements: [{"BearerAuth":[]}],
1281
+ tags: ["Workflows"],
1282
+ deprecated: false
1283
+ }],
1284
+ ["deactivateWorkflow", {
1285
+ name: "deactivateWorkflow",
1286
+ 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.
1287
+
1288
+ (Tags: Workflows)`,
1289
+ inputSchema: {"type":"object","properties":{"workflow_id":{"type":"number","description":"Id of the workflow."}},"required":["workflow_id"]},
1290
+ method: "post",
1291
+ pathTemplate: "/workflows/{workflow_id}/deactivate",
1292
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1293
+ requestBodyContentType: undefined,
1294
+ securityRequirements: [{"BearerAuth":[]}],
1295
+ tags: ["Workflows"],
1296
+ deprecated: false
1297
+ }],
1298
+ ["testWorkflow", {
1299
+ name: "testWorkflow",
1300
+ 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.
1301
+
1302
+ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the result.
1303
+
1304
+ (Tags: Workflows)`,
1305
+ 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"]},
1306
+ method: "post",
1307
+ pathTemplate: "/workflows/{workflow_id}/test",
1308
+ executionParameters: [{"name":"workflow_id","in":"path"}],
1309
+ requestBodyContentType: "application/json",
1310
+ securityRequirements: [{"BearerAuth":[]}],
1311
+ tags: ["Workflows"],
1312
+ deprecated: false
1313
+ }],
1314
+ ["getWorkflowExecution", {
1315
+ name: "getWorkflowExecution",
1316
+ 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\`.
1317
+
1318
+ (Tags: Workflows)`,
1319
+ 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"]},
1320
+ method: "get",
1321
+ pathTemplate: "/workflows/{workflow_id}/executions/{execution_id}",
1322
+ executionParameters: [{"name":"workflow_id","in":"path"},{"name":"execution_id","in":"path"}],
1323
+ requestBodyContentType: undefined,
1324
+ securityRequirements: [{"BearerAuth":[]}],
1325
+ tags: ["Workflows"],
1326
+ deprecated: false
1327
+ }],
911
1328
  ]);
912
1329
 
913
1330
  /**