@omnidim-ai/mcp-server 0.18.0 → 0.18.1
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/README.md +55 -16
- package/build/index.d.ts +1 -1
- package/build/index.js +585 -40
- package/build/index.js.map +1 -1
- package/build/tool-annotations.js +3 -4
- package/build/tool-annotations.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +585 -40
- package/src/tool-annotations.ts +3 -4
package/build/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import axios from 'axios';
|
|
|
19
19
|
* Server configuration
|
|
20
20
|
*/
|
|
21
21
|
export const SERVER_NAME = "OmniDimension";
|
|
22
|
-
export const SERVER_VERSION = "0.18.
|
|
22
|
+
export const SERVER_VERSION = "0.18.1"; // x-release-please-version
|
|
23
23
|
// Base URL for the API. Pinned to production; not env-overridable.
|
|
24
24
|
export const API_BASE_URL = "https://omnidim.io/api/v1";
|
|
25
25
|
/**
|
|
@@ -64,7 +64,7 @@ connect and talk, see "Connect the client and talk" below the
|
|
|
64
64
|
request details.
|
|
65
65
|
|
|
66
66
|
(Tags: Sessions)`,
|
|
67
|
-
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "type"], "properties": { "agent_id": { "type": "number", "description": "ID of the agent the session talks to." }, "type": { "type": "string", "default": "voice", "enum": ["voice"], "description": "The session type. Only `voice` is supported." }, "custom_variables": { "type": "object", "additionalProperties": true, "description": "Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\nTwo reserved keys are read as instructions for this session\nand never reach the agent: `__languages` and\n`__post_call_actions`.\n", "properties": { "__languages": { "oneOf": [{ "type": "array", "items": { "type": "string" } }, { "type": "string" }], "description": "Languages this session runs in, replacing the agent's\nconfigured list. The first entry is the language the\nvisitor is greeted in. Send an array, or a pipe-separated\nstring such as `Hindi|English`.\n" }, "__post_call_actions": { "allOf": [{ "type": "object", "description": "Side effects that fire once the call ends: email, webhook, Omni CRM,\nCloud WhatsApp, a workflow, Google Sheets, Slack, Salesforce, HubSpot\nor Zoho Bigin.\n", "properties": { "email": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "recipients": { "type": "array", "description": "Email addresses that should receive the notification.", "items": { "type": "string", "format": "email" }, "example": ["support@example.com"] }, "include": { "type": "array", "description": "Which sections to include in the email body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the email.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this action. Omit to\nuse the default (`completed`, `voicemail_detected`).\nPass an explicit list to also include failed calls,\nno-answers, busy signals, etc.\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] }, "example": ["completed", "voicemail_detected"] } } }, "webhook": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "url": { "type": "string", "format": "uri", "description": "Endpoint that receives a POST with the call payload.", "example": "https://your-webhook-endpoint.com/omnidim-callback" }, "include": { "type": "array", "description": "Which sections to include in the webhook body.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for the webhook.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that should fire this webhook. Omit to\nuse the default (`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] }, "example": ["completed", "failed"] } } }, "omni_crm": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Save the call to Omni CRM." }] }, "cloud_whatsapp": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Send a Cloud WhatsApp template message after the call.", "properties": { "phone_number_id": { "type": "integer", "description": "The id of your organization's Cloud WhatsApp number the\nmessage is sent from.\n" }, "template_id": { "type": "integer", "description": "An approved template on that number. A template that is not\napproved, or that belongs to another number, is refused.\n" }, "template_variables": { "type": "array", "description": "Which extracted variable fills each template placeholder.", "items": { "type": "object", "properties": { "index": { "type": "string", "description": "The placeholder number, as a string.", "example": "1" }, "extracted_var": { "type": "string", "description": "The key of the extracted variable whose value fills this placeholder.", "example": "customer_name" } } } }, "templates": { "type": "array", "description": "One or more templates to send, each with its variable mapping.", "items": { "type": "object", "description": "One Cloud WhatsApp template to send after the call.", "properties": { "template_id": { "type": "integer", "description": "An approved template on the chosen number." }, "usage_description": { "type": "string", "description": "When this template should be sent. After the call, the model reads\nthese descriptions to choose which templates fit the conversation.\n", "example": "Send when the caller books an appointment." }, "always_send": { "type": "boolean", "description": "Send this template after every call, whichever templates the model chooses." }, "variable_mappings": { "type": "array", "description": "How to fill each template placeholder.", "items": { "type": "object", "properties": { "index": { "type": "string", "description": "The placeholder number, as a string.", "example": "1" }, "extracted_var": { "type": "string", "description": "The extracted variable whose value fills this placeholder." }, "static_value": { "type": "string", "description": "A fixed value for this placeholder. When set, it is used\ninstead of the extracted variable.\n" }, "mode": { "type": "string", "enum": ["variable", "static"], "description": "Which input the dashboard shows for this placeholder. It\ndoes not change the value sent: a `static_value` is used\nfirst, then the extracted variable, then `fallback_value`.\n" }, "fallback_value": { "type": "string", "description": "The value to use when the variable is not extracted." } } } } } } } } }] }, "workflow": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Trigger a workflow after the call.", "properties": { "workflow_id": { "type": "integer", "description": "The id of the workflow to run." } } }] }, "google_sheets": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Append the call to a Google Sheet. Sending this key replaces the\nagent's Google Sheets actions; leaving it out keeps them.\n", "properties": { "integration_id": { "type": "integer", "description": "Required. The id of your Google Sheets integration." }, "spreadsheet_id": { "type": "string", "description": "Required. The id in the sheet's URL, the part after `/d/`." }, "spreadsheet_name": { "type": "string" }, "worksheet_name": { "type": "string", "description": "The tab to append to. Defaults to `Sheet1`." } } }] }, "slack": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Post the call to a Slack channel. Sending this key replaces the\nagent's Slack actions; leaving it out keeps them.\n", "properties": { "integration_id": { "type": "integer", "description": "Required. The id of your Slack integration." }, "channel_id": { "type": "string", "description": "The channel id. Send this or `channel_name`." }, "channel_name": { "type": "string", "description": "The channel name. Send this or `channel_id`." } } }] }, "salesforce": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Create a Salesforce record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's Salesforce actions;\nleaving it out keeps them.\n", "properties": { "integration_id": { "type": "integer", "description": "Required. The id of your Salesforce integration." }, "object_name": { "type": "string", "enum": ["Lead", "Contact", "Account", "Opportunity", "Case", "Task", "Product"], "description": "Defaults to `Lead`." } } }] }, "hubspot": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Create a HubSpot record from the call. Sends a fixed set of\nfields for the object, so it takes no `extracted_variables`.\nSending this key replaces the agent's HubSpot actions; leaving\nit out keeps them.\n", "properties": { "integration_id": { "type": "integer", "description": "Required. The id of your HubSpot integration." }, "object_name": { "type": "string", "enum": ["contact", "company", "deal", "ticket"], "description": "Required." } } }] }, "zoho_bigin": { "allOf": [{ "type": "object", "description": "Settings every post-call channel shares.", "properties": { "enabled": { "type": "boolean" }, "include": { "type": "array", "description": "Which sections to include in this action.", "items": { "type": "string", "enum": ["summary", "extracted_variables", "fullConversation", "sentiment"] } }, "extracted_variables": { "type": "array", "description": "Variables the model should pull out of the conversation for this action.", "items": { "type": "object", "required": ["key", "prompt"], "properties": { "key": { "type": "string", "description": "Unique identifier for the variable in the post-call payload.", "example": "customer_issue" }, "prompt": { "type": "string", "description": "Instruction for the model on what to pull out of the conversation.", "example": "Identify the main issue the customer is experiencing." } } } }, "trigger_call_statuses": { "type": "array", "description": "Call outcomes that fire this action. Omit to use the default\n(`completed`, `voicemail_detected`).\n", "items": { "type": "string", "enum": ["completed", "voicemail_detected", "failed", "no-answer", "busy", "canceled"] } } } }, { "type": "object", "description": "Log the call in Zoho Bigin. Sending this key replaces the\nagent's Zoho Bigin actions; leaving it out keeps them.\n", "properties": { "integration_id": { "type": "integer", "description": "Required. The id of your Zoho Bigin integration." }, "create_call_log": { "type": "boolean", "description": "Log the call. Defaults to true." }, "update_contact": { "type": "boolean", "description": "Update a matching contact with what the call captured. Defaults to true." }, "create_contact": { "type": "boolean", "description": "Create a contact when no contact matches. Defaults to true." } } }] } } }], "description": "Post-call actions for this session only, in the same shape\nas `post_call_actions` on agent create. Email and webhook\nonly. They replace the agent's own post-call actions for\nthis session. Items that cannot be used are skipped and\nlisted in `post_call_actions_ignored`.\n" } } }, "metadata": { "type": "object", "additionalProperties": true, "description": "Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
67
|
+
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 or update a Salesforce record from the call. Sends a\nfixed set of fields for the object, so it takes no\n`extracted_variables`. Sending this key replaces the agent's\nSalesforce actions; leaving 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`." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`upsert` finds the record by the caller's number and updates\nit or creates it. `create` creates a new record every call.\nDefaults to `create`.\n" }, "match_field": { "type": "string", "description": "`upsert` only: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "Log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "Add the call summary as a note on the record. Defaults to false." } } }] }, "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"] },
|
|
68
68
|
method: "post",
|
|
69
69
|
pathTemplate: "/sessions/create",
|
|
70
70
|
executionParameters: [],
|
|
@@ -94,13 +94,20 @@ end-call conditions, post-call actions (email, webhook, Omni CRM,
|
|
|
94
94
|
Cloud WhatsApp, or a workflow),
|
|
95
95
|
ambient background track, initial ringing sound, and multilingual support.
|
|
96
96
|
|
|
97
|
+
Leave out \`model\`, \`transcriber\` and \`voice\` unless you need a specific
|
|
98
|
+
one: the agent then gets your organization's default language model,
|
|
99
|
+
transcriber and voice, which always work. To choose one, pick from the
|
|
100
|
+
LLM, STT and TTS providers lists, which show only the models your
|
|
101
|
+
organization can use. Any other model is refused with a message naming
|
|
102
|
+
the default to use instead.
|
|
103
|
+
|
|
97
104
|
> **Voicemail detection is an access-gated feature** that we turn on per
|
|
98
105
|
account. If it isn't enabled for yours yet,
|
|
99
106
|
[request access](https://omnidim.io/contact-us?reason=product&lock=1)
|
|
100
107
|
before configuring the \`voicemail\` object.
|
|
101
108
|
|
|
102
109
|
(Tags: Agents)`,
|
|
103
|
-
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"] },
|
|
110
|
+
inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "Your own unique key for this agent, for example a fresh UUID.\nSend the same key when you retry. If the first request already\ncreated the agent, you get that agent back instead of a second\none, so a request that timed out is safe to repeat. The same key\nwith a different request body is refused. Keys are kept for 24\nhours.\n" }, "requestBody": { "allOf": [{ "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent.", "example": "Customer Support Agent" }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call.", "example": "Hello! How can I help you today?" }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" }, "example": { "customer_name": "Jane Doe", "order_id": "ORD-12345" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown.", "example": "Purpose" }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content.", "example": "This agent helps customers with product inquiries and support issues." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it.", "example": "America/New_York" }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use. Leave it out to use your organization's default transcriber. The STT providers list shows the ones your organization can use.", "example": "deepgram_stream" }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n", "example": "nova-3" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n", "example": "en-US" }, "silence_timeout_ms": { "type": "integer", "description": "Silence timeout in milliseconds.", "example": 400 }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "integer", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption.", "example": 2 }, "max_call_duration_in_sec": { "type": "integer", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached.", "example": 600 }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. Leave it out to use your organization's default model. Only models your organization can use are accepted: the LLM providers list returns exactly those.", "example": "gpt-4.1-mini" }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0).", "example": 0.7 } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "enum": ["cartesia", "sarvam", "eleven_labs", "google"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use.", "example": "cartesia" }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it.", "example": "faf0731e-dfb9-4cfc-8119-259a79b27e12" }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use.", "example": "DuckDuckGo" } } }, "post_call_actions": { "type": "object", "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 or update a Salesforce record from the call. Sends a\nfixed set of fields for the object, so it takes no\n`extracted_variables`. Sending this key replaces the agent's\nSalesforce actions; leaving 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`." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`upsert` finds the record by the caller's number and updates\nit or creates it. `create` creates a new record every call.\nDefaults to `create`.\n" }, "match_field": { "type": "string", "description": "`upsert` only: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "Log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "Add the call summary as a note on the record. Defaults to false." } } }] }, "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"] },
|
|
104
111
|
method: "post",
|
|
105
112
|
pathTemplate: "/agents/create",
|
|
106
113
|
executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
|
|
@@ -130,7 +137,7 @@ before configuring the \`voicemail\` object.
|
|
|
130
137
|
|
|
131
138
|
> **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.
|
|
132
139
|
(Tags: Agents)`,
|
|
133
|
-
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"] },
|
|
140
|
+
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "description": "Agent configuration.", "properties": { "name": { "type": "string", "description": "Name for the agent." }, "welcome_message": { "type": "string", "description": "Initial message the agent will say when answering a call." }, "is_welcome_message_dynamic": { "type": "boolean", "description": "When true, the welcome message is treated as a directive the agent uses to generate a tailored greeting for each call, rather than being spoken word for word. When false, the welcome message is spoken exactly as written." }, "is_welcome_message_interruption": { "type": "boolean", "description": "Allow the caller to interrupt the welcome message. When false, the agent finishes speaking the welcome before listening." }, "is_interruption_allowed": { "type": "boolean", "description": "Global toggle for whether the caller can interrupt the agent mid-sentence at any point in the call." }, "dynamic_variables": { "type": "object", "description": "Key/value map used to substitute placeholders in the agent's\nprompt and welcome message at call time. Reference a variable\nin your prompt with `{{variable_name}}`. Useful for\npersonalising the same agent across many calls.\n", "additionalProperties": { "type": "string" } }, "context_breakdown": { "type": "array", "description": "List of context breakdowns, each containing `title`, `body`, and optional `is_enabled`.", "items": { "type": "object", "required": ["title", "body"], "properties": { "title": { "type": "string", "description": "Title of the breakdown." }, "body": { "type": "string", "description": "Body of the breakdown, the detailed prompt content." }, "is_enabled": { "type": "boolean", "default": true, "description": "Whether this section is included in the prompt." } } } }, "call_type": { "type": "string", "enum": ["Incoming", "Outgoing"], "description": "Call type of the assistant." }, "timezone": { "type": "string", "description": "IANA timezone for this agent, for example `Asia/Kolkata`. Sets the local date and time the agent works with during calls. If not set, the account timezone is used as fallback. Pass an empty string to clear it." }, "transcriber": { "type": "object", "description": "Configuration for the speech-to-text transcriber.", "properties": { "provider": { "type": "string", "enum": ["deepgram_stream", "cartesia", "sarvam", "azure_stream", "soniox"], "description": "The speech-to-text provider to use. Leave it out to use your organization's default transcriber. The STT providers list shows the ones your organization can use." }, "model": { "type": "string", "description": "Transcription model for the selected provider. For\n`deepgram_stream` this is `nova-3` or `nova-2`; other\nproviders take their own model identifiers.\n" }, "language": { "type": "string", "description": "Language code for the transcriber. Format and supported\nvalues depend on the provider (e.g. `en-US` for Deepgram,\n`hi-IN` for Sarvam). Applies regardless of which\n`provider` is selected.\n" }, "silence_timeout_ms": { "type": "number", "description": "Silence timeout in milliseconds." }, "should_apply_noise_reduction": { "type": "boolean", "description": "Reduce background noise on the inbound audio stream before transcription." }, "interruption_min_words": { "type": "number", "minimum": 1, "description": "Minimum number of words the caller must say before their speech is treated as an interruption." }, "max_call_duration_in_sec": { "type": "number", "minimum": 1, "description": "Hard upper bound on call length in seconds. The agent will end the call once this is reached." }, "first_ideal_message": { "type": "string", "description": "First nudge spoken when the caller goes silent past the\nidle threshold. Set `is_first_ideal_message_dynamic` to\n`true` to have the LLM regenerate this each time.\n" }, "is_first_ideal_message_dynamic": { "type": "boolean", "description": "When true, `first_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "second_ideal_message": { "type": "string", "description": "Second nudge spoken if silence continues after the first." }, "is_second_ideal_message_dynamic": { "type": "boolean", "description": "When true, `second_ideal_message` is treated as a prompt and the LLM generates a fresh nudge each call." }, "numerals": { "type": "boolean", "description": "Convert numbers from words to digits." }, "punctuate": { "type": "boolean", "description": "Add punctuation to the transcript." }, "smart_format": { "type": "boolean", "description": "Apply smart formatting to the transcript." }, "diarize": { "type": "boolean", "description": "Identify different speakers in the transcript." } } }, "model": { "type": "object", "description": "Configuration for the language model.", "properties": { "model": { "type": "string", "enum": ["azure-gpt-4.1-mini", "azure-gpt-4.1-nano", "azure-gpt-4o", "azure-gpt-4o-mini", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gpt-3.5-turbo", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4o", "gpt-4o-mini", "gpt-5.1", "llama-3.3-70b-versatile"], "description": "The language model to use. Leave it out to use your organization's default model. Only models your organization can use are accepted: the LLM providers list returns exactly those." }, "temperature": { "type": "number", "minimum": 0, "maximum": 1, "description": "Controls randomness in the model's output (0.0 to 1.0)." } } }, "voice": { "type": "object", "description": "Configuration for the text-to-speech voice. `provider` and `voice_id` identify the voice together, so send both to change it. `provider` on its own is not accepted, and a `voice_id` on its own leaves the voice as it was. The other fields here apply independently. Leave out `provider` and `voice_id` to use your organization's default voice.", "dependentRequired": { "provider": ["voice_id"] }, "properties": { "provider": { "type": "string", "enum": ["cartesia", "sarvam", "eleven_labs", "google"], "description": "The voice provider to use. The current catalog is returned by the TTS providers list. Send `voice_id` alongside it. An agent created without `voice` gets the platform default, a Cartesia voice, which every account can use." }, "voice_id": { "type": "string", "description": "The provider's voice identifier, returned in the `name` field of the voices list (not the numeric `id`). Takes effect when `provider` is sent alongside it." }, "speech_speed": { "type": "number", "minimum": 0.5, "maximum": 2, "default": 1, "description": "Playback speed multiplier for the agent's voice. 1.0 is normal speed." } } }, "web_search": { "type": "object", "description": "Configuration for web search capabilities.", "properties": { "enabled": { "type": "boolean", "description": "Enable or disable web search functionality." }, "provider": { "type": "string", "enum": ["DuckDuckGo", "openAI"], "description": "The search provider to use." } } }, "post_call_actions": { "type": "object", "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 or update a Salesforce record from the call. Sends a\nfixed set of fields for the object, so it takes no\n`extracted_variables`. Sending this key replaces the agent's\nSalesforce actions; leaving 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`." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`upsert` finds the record by the caller's number and updates\nit or creates it. `create` creates a new record every call.\nDefaults to `create`.\n" }, "match_field": { "type": "string", "description": "`upsert` only: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "Log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "Add the call summary as a note on the record. Defaults to false." } } }] }, "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"] },
|
|
134
141
|
method: "put",
|
|
135
142
|
pathTemplate: "/agents/{agent_id}",
|
|
136
143
|
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
@@ -169,7 +176,7 @@ before configuring the \`voicemail\` object.
|
|
|
169
176
|
name: "addPostCallAction",
|
|
170
177
|
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.
|
|
171
178
|
(Tags: Agents)`,
|
|
172
|
-
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"] },
|
|
179
|
+
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." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`salesforce` only: `upsert` finds the record by the caller's number\nand updates it or creates it. `create` creates a new record every\ncall. Defaults to `create`.\n" }, "match_field": { "type": "string", "description": "`salesforce` only, with `upsert`: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "`salesforce` only: log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "`salesforce` only: add the call summary as a note on the record. Defaults to false." }, "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"] },
|
|
173
180
|
method: "post",
|
|
174
181
|
pathTemplate: "/agents/{agent_id}/post-call-actions",
|
|
175
182
|
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "Idempotency-Key", "in": "header" }],
|
|
@@ -195,7 +202,7 @@ before configuring the \`voicemail\` object.
|
|
|
195
202
|
name: "updatePostCallAction",
|
|
196
203
|
description: `Change fields of one post-call action. Fields you don't send keep their value. The \`type\` cannot change.
|
|
197
204
|
(Tags: Agents)`,
|
|
198
|
-
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"] },
|
|
205
|
+
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." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`salesforce` only: `upsert` finds the record by the caller's number\nand updates it or creates it. `create` creates a new record every\ncall. Defaults to `create`.\n" }, "match_field": { "type": "string", "description": "`salesforce` only, with `upsert`: the phone field the caller's number is looked up in. Defaults to `Phone`." }, "log_call": { "type": "boolean", "description": "`salesforce` only: log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "`salesforce` only: add the call summary as a note on the record. Defaults to false." }, "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"] },
|
|
199
206
|
method: "patch",
|
|
200
207
|
pathTemplate: "/agents/{agent_id}/post-call-actions/{action_id}",
|
|
201
208
|
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "action_id", "in": "path" }],
|
|
@@ -217,6 +224,58 @@ before configuring the \`voicemail\` object.
|
|
|
217
224
|
tags: ["Integrations"],
|
|
218
225
|
deprecated: false
|
|
219
226
|
}],
|
|
227
|
+
["createCustomApiIntegration", {
|
|
228
|
+
name: "createCustomApiIntegration",
|
|
229
|
+
description: `Save a call to your own HTTP endpoint as an integration. Attach it to an agent with \`attachAgentIntegration\`, and the agent calls the endpoint during a call when the conversation needs it, then uses the response in its reply. Parameters marked \`isLLMGenerated\` are filled in by the agent from the conversation.
|
|
230
|
+
(Tags: Integrations)`,
|
|
231
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "url", "method"], "properties": { "name": { "type": "string", "description": "A name for the integration." }, "description": { "type": "string", "description": "What the endpoint does. The agent reads this to decide\nwhen to call it, so say what it returns and when it is useful.\n" }, "url": { "type": "string", "format": "uri" }, "method": { "type": "string", "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"] }, "headers": { "type": "array", "description": "Fixed headers sent on every request.", "items": { "type": "object", "required": ["key", "value"], "properties": { "key": { "type": "string" }, "value": { "type": "string" } } } }, "query_params": { "type": "array", "description": "Query string parameters.", "items": { "type": "object", "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n", "required": ["key"], "properties": { "key": { "type": "string", "description": "The parameter name your endpoint expects." }, "description": { "type": "string", "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false." }, "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"], "default": "string" }, "required": { "type": "boolean", "description": "Whether the agent must supply this parameter." }, "isLLMGenerated": { "type": "boolean", "default": true, "description": "Let the agent fill this value from the conversation." }, "children": { "type": "array", "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.", "items": { "type": "object" } } } } }, "body_params": { "type": "array", "description": "Request body fields, sent as JSON. A GET request sends no\nbody. Every request with a body also carries the call's\n`from_number`, `to_number` and `call_sid`.\n", "items": { "type": "object", "description": "One query or body parameter of a custom API. With `isLLMGenerated`\ntrue the agent fills the value from the conversation, guided by\n`description`. With it false, the text in `description` is sent as a\nfixed value.\n", "required": ["key"], "properties": { "key": { "type": "string", "description": "The parameter name your endpoint expects." }, "description": { "type": "string", "description": "What the agent should put here, or the fixed value when `isLLMGenerated` is false." }, "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"], "default": "string" }, "required": { "type": "boolean", "description": "Whether the agent must supply this parameter." }, "isLLMGenerated": { "type": "boolean", "default": true, "description": "Let the agent fill this value from the conversation." }, "children": { "type": "array", "description": "Nested fields of an `object` or `array` body parameter. Query parameters have no children.", "items": { "type": "object" } } } } }, "request_timeout": { "type": "number", "default": 10, "description": "Seconds to wait for your endpoint before the agent moves on." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
232
|
+
method: "post",
|
|
233
|
+
pathTemplate: "/integrations/custom-api",
|
|
234
|
+
executionParameters: [],
|
|
235
|
+
requestBodyContentType: "application/json",
|
|
236
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
237
|
+
tags: ["Integrations"],
|
|
238
|
+
deprecated: false
|
|
239
|
+
}],
|
|
240
|
+
["listAgentIntegrations", {
|
|
241
|
+
name: "listAgentIntegrations",
|
|
242
|
+
description: `List the integrations attached to the agent. Stored credentials read \`********\`.
|
|
243
|
+
(Tags: Integrations)`,
|
|
244
|
+
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
|
|
245
|
+
method: "get",
|
|
246
|
+
pathTemplate: "/agents/{agent_id}/integrations",
|
|
247
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
248
|
+
requestBodyContentType: undefined,
|
|
249
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
250
|
+
tags: ["Integrations"],
|
|
251
|
+
deprecated: false
|
|
252
|
+
}],
|
|
253
|
+
["attachAgentIntegration", {
|
|
254
|
+
name: "attachAgentIntegration",
|
|
255
|
+
description: `Attach one of your integrations to the agent. The agent can use it on its next call. Integrations already attached stay as they are.
|
|
256
|
+
(Tags: Integrations)`,
|
|
257
|
+
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "requestBody": { "type": "object", "required": ["integration_id"], "properties": { "integration_id": { "type": "number", "description": "The integration's id, from `listIntegrations` or a create response." } }, "description": "The JSON request body." } }, "required": ["agent_id", "requestBody"] },
|
|
258
|
+
method: "post",
|
|
259
|
+
pathTemplate: "/agents/{agent_id}/integrations",
|
|
260
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }],
|
|
261
|
+
requestBodyContentType: "application/json",
|
|
262
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
263
|
+
tags: ["Integrations"],
|
|
264
|
+
deprecated: false
|
|
265
|
+
}],
|
|
266
|
+
["detachAgentIntegration", {
|
|
267
|
+
name: "detachAgentIntegration",
|
|
268
|
+
description: `Remove the integration from the agent. The integration itself is kept and stays available to attach again.
|
|
269
|
+
(Tags: Integrations)`,
|
|
270
|
+
inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." }, "integration_id": { "type": "number", "description": "The ID of the integration to detach." } }, "required": ["agent_id", "integration_id"] },
|
|
271
|
+
method: "delete",
|
|
272
|
+
pathTemplate: "/agents/{agent_id}/integrations/{integration_id}",
|
|
273
|
+
executionParameters: [{ "name": "agent_id", "in": "path" }, { "name": "integration_id", "in": "path" }],
|
|
274
|
+
requestBodyContentType: undefined,
|
|
275
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
276
|
+
tags: ["Integrations"],
|
|
277
|
+
deprecated: false
|
|
278
|
+
}],
|
|
220
279
|
["listAgentVersions", {
|
|
221
280
|
name: "listAgentVersions",
|
|
222
281
|
description: `List an agent's saved versions, newest first. Includes manual (named) versions, automatic versions, and system backups taken before a restore.
|
|
@@ -301,7 +360,7 @@ before configuring the \`voicemail\` object.
|
|
|
301
360
|
phone number must include a country code with a leading plus.
|
|
302
361
|
|
|
303
362
|
(Tags: Calls)`,
|
|
304
|
-
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"] },
|
|
363
|
+
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 or update a Salesforce record from the call. Sends a\nfixed set of fields for the object, so it takes no\n`extracted_variables`. Sending this key replaces the agent's\nSalesforce actions; leaving 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`." }, "action": { "type": "string", "enum": ["create", "upsert"], "description": "`upsert` finds the record by the caller's number and updates\nit or creates it. `create` creates a new record every call.\nDefaults to `create`.\n" }, "match_field": { "type": "string", "description": "`upsert` only: the phone field the caller's number is looked up in. Defaults to `Phone`.", "example": "Phone" }, "log_call": { "type": "boolean", "description": "Log the call on the record, with the summary and recording link. Defaults to false." }, "add_note": { "type": "boolean", "description": "Add the call summary as a note on the record. Defaults to false." } } }] }, "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"] },
|
|
305
364
|
method: "post",
|
|
306
365
|
pathTemplate: "/calls/dispatch",
|
|
307
366
|
executionParameters: [],
|
|
@@ -314,10 +373,10 @@ phone number must include a country code with a leading plus.
|
|
|
314
373
|
name: "listCallLogs",
|
|
315
374
|
description: `Retrieve call logs with pagination and optional filtering.
|
|
316
375
|
(Tags: Calls)`,
|
|
317
|
-
inputSchema: { "type": "object", "properties": { "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." }, "agentid": { "type": "number", "description": "Filter by agent ID." }, "call_status": { "type": "string", "enum": ["completed", "busy", "failed", "no-answer"], "description": "Filter by call outcome." }, "bulk_call_id": { "type": "number", "description": "Filter by bulk-call campaign ID." } } },
|
|
376
|
+
inputSchema: { "type": "object", "properties": { "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." }, "agentid": { "type": "number", "description": "Filter by agent ID." }, "call_status": { "type": "string", "enum": ["completed", "busy", "failed", "no-answer"], "description": "Filter by call outcome." }, "bulk_call_id": { "type": "number", "description": "Filter by bulk-call campaign ID. Takes one ID." }, "include_details": { "type": "boolean", "default": true, "description": "Set to `false` for a lighter list. Each row then leaves out\n`call_conversation`, `sentiment_analysis_details`, `llm_prompt`,\n`voice_insides`, `custom_variables` and `metadata`. Fetch those for\none call with Get call log.\n" } } },
|
|
318
377
|
method: "get",
|
|
319
378
|
pathTemplate: "/calls/logs",
|
|
320
|
-
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "agentid", "in": "query" }, { "name": "call_status", "in": "query" }, { "name": "bulk_call_id", "in": "query" }],
|
|
379
|
+
executionParameters: [{ "name": "pageno", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "agentid", "in": "query" }, { "name": "call_status", "in": "query" }, { "name": "bulk_call_id", "in": "query" }, { "name": "include_details", "in": "query" }],
|
|
321
380
|
requestBodyContentType: undefined,
|
|
322
381
|
securityRequirements: [{ "BearerAuth": [] }],
|
|
323
382
|
tags: ["Calls"],
|
|
@@ -362,7 +421,7 @@ request, every refusal message with its fix, and the endpoints that
|
|
|
362
421
|
operate a campaign once it runs.
|
|
363
422
|
|
|
364
423
|
(Tags: Bulk calls)`,
|
|
365
|
-
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "The number this campaign calls from. With a `rotation`, the\nrotation numbers dial instead and this one is the standby.\n" }, "bot_id": { "type": "number", "description": "Agent to run the campaign. Defaults to the agent attached\nto `phone_number_id`; required when the number has none.\n" }, "save_as_draft": { "type": "boolean", "default": false, "description": "Store the campaign without dialing; start it later with the\nstart endpoint. See Drafts in the guide below.\n" }, "call_conditions": { "type": "array", "description": "Dial only the contacts that match every condition; the rest\nare kept as `Skipped`. See Filtering in the guide below.\n", "items": { "type": "object", "required": ["column", "operator", "value"], "properties": { "column": { "type": "string", "description": "Key on the contact row to test." }, "operator": { "type": "string", "default": "equals", "enum": ["equals", "not_equals", "contains", "greater_than", "less_than"], "description": "`contains` is case-insensitive. `greater_than` and\n`less_than` compare numerically, and a row whose value\nis not a number fails the condition rather than\nerroring.\n" }, "value": { "type": "string" } } } }, "rotation": { "type": "object", "description": "Rotate the campaign across several of your numbers, so no\nsingle number burns out. See Rotation in the guide below.\n", "required": ["numbers"], "properties": { "numbers": { "type": "array", "minItems": 1, "description": "The numbers to rotate across; each must be yours and\nlisted once.\n", "items": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." }, "sequence": { "type": "number", "default": 10, "description": "Rotation order. Lowest dials first." } } } }, "strategy": { "type": "string", "default": "fixed_count", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every\n`calls_per_number` calls, on low health score, both, or\nnever.\n" }, "calls_per_number": { "type": "number", "default": 50, "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "default": 30, "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "default": "pause", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign,\nor `continue_best` with the healthiest one.\n" } } }, "is_dynamic": { "type": "boolean", "default": false, "description": "A dynamic campaign stays alive accepting contacts via the\nadd-contact webhooks, and `contact_list` becomes optional.\n" }, "contact_list": { "type": "array", "description": "Who to call. Each row needs `phone_number`; any other key\nreaches the agent as context for that one call.\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 1, "minimum": 1, "maximum": 10, "description": "Retry attempts, 1 to 10. To disable retries omit it and\nleave `auto_retry` false; never send `0`.\n" } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
424
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "The number this campaign calls from. With a `rotation`, the\nrotation numbers dial instead and this one is the standby.\n" }, "bot_id": { "type": "number", "description": "Agent to run the campaign. Defaults to the agent attached\nto `phone_number_id`; required when the number has none.\n" }, "save_as_draft": { "type": "boolean", "default": false, "description": "Store the campaign without dialing; start it later with the\nstart endpoint. See Drafts in the guide below.\n" }, "call_conditions": { "type": "array", "description": "Dial only the contacts that match every condition; the rest\nare kept as `Skipped`. See Filtering in the guide below.\n", "items": { "type": "object", "required": ["column", "operator", "value"], "properties": { "column": { "type": "string", "description": "Key on the contact row to test." }, "operator": { "type": "string", "default": "equals", "enum": ["equals", "not_equals", "contains", "greater_than", "less_than"], "description": "`contains` is case-insensitive. `greater_than` and\n`less_than` compare numerically, and a row whose value\nis not a number fails the condition rather than\nerroring.\n" }, "value": { "type": "string" } } } }, "rotation": { "type": "object", "description": "Rotate the campaign across several of your numbers, so no\nsingle number burns out. See Rotation in the guide below.\n", "required": ["numbers"], "properties": { "numbers": { "type": "array", "minItems": 1, "description": "The numbers to rotate across; each must be yours and\nlisted once.\n", "items": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." }, "sequence": { "type": "number", "default": 10, "description": "Rotation order. Lowest dials first." } } } }, "strategy": { "type": "string", "default": "fixed_count", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every\n`calls_per_number` calls, on low health score, both, or\nnever.\n" }, "calls_per_number": { "type": "number", "default": 50, "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "default": 30, "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "default": "pause", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign,\nor `continue_best` with the healthiest one.\n" }, "call_back_from_different_number": { "type": "boolean", "default": false, "description": "When on, a repeat call to the same person goes out from\na different number than the one that called them last.\nNeeds two or more numbers in the pool.\n" } } }, "skip_known_invalid_numbers": { "type": "boolean", "default": false, "description": "When on, a contact is not dialed if the carrier said its\nnumber does not exist, in any campaign of your organization\nin the last 14 days. That contact shows as a failed call\nwith the reason `Invalid number` and is never retried.\n" }, "is_dynamic": { "type": "boolean", "default": false, "description": "A dynamic campaign stays alive accepting contacts via the\nadd-contact webhooks, and `contact_list` becomes optional.\n" }, "contact_list": { "type": "array", "description": "Who to call. Each row needs `phone_number`; any other key\nreaches the agent as context for that one call.\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 1, "minimum": 1, "maximum": 10, "description": "Retry attempts, 1 to 10. To disable retries omit it and\nleave `auto_retry` false; never send `0`. Ignored when\n`retry_steps` is set.\n" }, "retry_steps": { "type": "array", "minItems": 1, "maxItems": 10, "description": "A different delay for each retry, in order: retry 1\nwaits for the first step, retry 2 for the second, and\nso on. When set, it replaces `auto_retry_schedule`,\n`retry_schedule_days`, `retry_schedule_hours` and\n`retry_limit`: a contact gets one retry per step. Each\ndelay is at most 30 days. A retry that falls outside\nthe campaign's daily calling hours waits until they\nopen again.\n\nA `days` step can also name a time of day with `at`:\n`{\"delay\": 1, \"unit\": \"days\", \"at\": \"10:00\"}` is 10:00\nthe next day, and `{\"delay\": 0, \"unit\": \"days\", \"at\":\n\"16:00\"}` the same day at 16:00. The date and time are\nread in the calling window's timezone,\n`daily_stop_timezone`; a campaign without a window\n(`enable_daily_hard_stop` off) uses its `timezone`.\nEach retry counts from the try before it; a time that\nhas already passed moves to the next day.\n", "items": { "type": "object", "required": ["delay", "unit"], "properties": { "delay": { "type": "number", "minimum": 0, "description": "How long to wait, in `unit`. `0` retries right away." }, "unit": { "type": "string", "enum": ["minutes", "hours", "days"] }, "at": { "type": "string", "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$", "description": "Time of day, `HH:MM` (24-hour) in\n`daily_stop_timezone`, or in `timezone` when\n`enable_daily_hard_stop` is off. Only on a\n`days` step; `delay: 0` means the same day.\n" } } } }, "retry_unanswered": { "type": "string", "enum": ["off", "no_reply", "no_reply_or_short", "model"], "default": "off", "description": "Also retry calls that connected but got no conversation.\n`no_reply`: the contact never spoke. `no_reply_or_short`:\nthe contact never spoke, or the call lasted at most\n`retry_unanswered_max_seconds`. `model`: the contact\nnever spoke, or post-call analysis read the transcript\nand found no real conversation. Retries follow the same\nschedule or steps as failed calls.\n" }, "retry_unanswered_max_seconds": { "type": "number", "default": 10, "minimum": 1, "maximum": 120, "description": "Under `no_reply_or_short`, a call this long or shorter\n(in seconds) counts as unanswered.\n" } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
366
425
|
method: "post",
|
|
367
426
|
pathTemplate: "/calls/bulk_call/create",
|
|
368
427
|
executionParameters: [],
|
|
@@ -382,7 +441,7 @@ and the campaign starts calling it as soon as it is within
|
|
|
382
441
|
operating hours.
|
|
383
442
|
|
|
384
443
|
(Tags: Bulk calls)`,
|
|
385
|
-
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "ID of the dynamic campaign to add the contact to." }, "requestBody": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Contact phone number in international format (e.g., +15551234567)." }, "custom_variables": { "type": "object", "description": "Key-value pairs passed to the agent as context for this\ncall, so the agent can reference them during the\nconversation (e.g. the contact's name or reason for the\ncall). Match these keys to the variables used in your\nagent's welcome message or prompt.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Key-value pairs stored on the contact for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent.\n", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
|
|
444
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "ID of the dynamic campaign to add the contact to." }, "requestBody": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Contact phone number in international format (e.g., +15551234567)." }, "custom_variables": { "type": "object", "description": "Key-value pairs passed to the agent as context for this\ncall, so the agent can reference them during the\nconversation (e.g. the contact's name or reason for the\ncall). Match these keys to the variables used in your\nagent's welcome message or prompt.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Key-value pairs stored on the contact for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent.\n", "additionalProperties": true }, "previous_from_number": { "type": "string", "description": "The number that called this person last. With\n`call_back_from_different_number` on, the call goes out\nfrom another number in the pool.\n" } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
|
|
386
445
|
method: "post",
|
|
387
446
|
pathTemplate: "/calls/bulk_call/{campaign_id}/add_contact",
|
|
388
447
|
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
@@ -553,7 +612,7 @@ is missing a column the campaign's \`call_conditions\` need is reported in
|
|
|
553
612
|
route.
|
|
554
613
|
|
|
555
614
|
(Tags: Bulk calls)`,
|
|
556
|
-
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"] },
|
|
615
|
+
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 }, "previous_from_number": { "type": "string", "description": "The number that called this person last. With\n`call_back_from_different_number` on, the call goes\nout from another number in the pool.\n" } } } } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
|
|
557
616
|
method: "post",
|
|
558
617
|
pathTemplate: "/calls/bulk_call/{campaign_id}/add_contacts",
|
|
559
618
|
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
@@ -599,6 +658,27 @@ The ceiling is your account's concurrency limit.
|
|
|
599
658
|
tags: ["Bulk calls"],
|
|
600
659
|
deprecated: false
|
|
601
660
|
}],
|
|
661
|
+
["setBulkCallRotation", {
|
|
662
|
+
name: "setBulkCallRotation",
|
|
663
|
+
description: `Change how a campaign uses its number pool. Send only the fields you
|
|
664
|
+
want to change. At least one field is required.
|
|
665
|
+
|
|
666
|
+
This works while the campaign status is \`draft\`, \`scheduled\`,
|
|
667
|
+
\`in_progress\`, \`waiting\`, \`paused\`, \`auto_paused\` or \`retry_scheduled\`.
|
|
668
|
+
Any other status is refused with \`Cannot edit rotation for status:
|
|
669
|
+
<status>\`. To change which numbers are in the pool, use the numbers
|
|
670
|
+
endpoints.
|
|
671
|
+
|
|
672
|
+
(Tags: Bulk calls)`,
|
|
673
|
+
inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "properties": { "strategy": { "type": "string", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every `calls_per_number`\ncalls, on low health score, both, or never.\n" }, "calls_per_number": { "type": "number", "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign, or\n`continue_best` with the healthiest one.\n" }, "call_back_from_different_number": { "type": "boolean", "description": "When on, a repeat call to the same person goes out from a\ndifferent number than the one that called them last. Needs\ntwo or more numbers in the pool. Must be `true` or `false`.\n" }, "skip_known_invalid_numbers": { "type": "boolean", "description": "When on, a contact is not dialed if the carrier said its\nnumber does not exist, in any campaign of your organization\nin the last 14 days. Must be `true` or `false`.\n" } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
|
|
674
|
+
method: "put",
|
|
675
|
+
pathTemplate: "/calls/bulk_call/{bulk_call_id}/rotation",
|
|
676
|
+
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
677
|
+
requestBodyContentType: "application/json",
|
|
678
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
679
|
+
tags: ["Bulk calls"],
|
|
680
|
+
deprecated: false
|
|
681
|
+
}],
|
|
602
682
|
["retryBulkCall", {
|
|
603
683
|
name: "retryBulkCall",
|
|
604
684
|
description: `Re-queue contacts that did not connect, without creating a new campaign.
|
|
@@ -607,8 +687,26 @@ Use it after a campaign finishes with more no-answers than you expected,
|
|
|
607
687
|
or when the reason was on your side (a bad window, a number that was
|
|
608
688
|
having a bad day). Retried contacts keep their original variables.
|
|
609
689
|
|
|
690
|
+
The retry is refused in these cases:
|
|
691
|
+
|
|
692
|
+
- The campaign status is not \`completed\`. The error is
|
|
693
|
+
\`Cannot retry calls. Current status: <status>\`.
|
|
694
|
+
- Auto retry is on and some contacts are still \`Pending\` or
|
|
695
|
+
\`In Progress\`. The error is \`Cannot retry while calls are still in
|
|
696
|
+
progress and auto retry is enabled\`.
|
|
697
|
+
- A value in \`failure_reasons\` is not one of the allowed statuses. The
|
|
698
|
+
error is \`Invalid failure reason(s)\` and lists the allowed values.
|
|
699
|
+
- No contact matches. The error is \`No failed calls found to retry
|
|
700
|
+
matching criteria\`.
|
|
701
|
+
|
|
702
|
+
Each contact is retried from its latest call only. When the campaign has
|
|
703
|
+
\`skip_known_invalid_numbers\` on, contacts whose last call ended with the
|
|
704
|
+
carrier saying the number does not exist are not retried. This endpoint
|
|
705
|
+
retries calls that did not connect. It does not retry connected calls
|
|
706
|
+
with no conversation.
|
|
707
|
+
|
|
610
708
|
(Tags: Bulk calls)`,
|
|
611
|
-
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"] },
|
|
709
|
+
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", "enum": ["failed", "Failed", "no-answer", "No Answer", "busy", "Busy", "cancelled", "canceled", "voicemail_detected"] } } }, "description": "The JSON request body." } }, "required": ["bulk_call_id"] },
|
|
612
710
|
method: "post",
|
|
613
711
|
pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
|
|
614
712
|
executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
|
|
@@ -793,6 +891,24 @@ released.
|
|
|
793
891
|
tags: ["Phone numbers"],
|
|
794
892
|
deprecated: false
|
|
795
893
|
}],
|
|
894
|
+
["setPhoneNumberAutoRenew", {
|
|
895
|
+
name: "setPhoneNumberAutoRenew",
|
|
896
|
+
description: `Turn auto-renew off or back on for a number bought from the number shop.
|
|
897
|
+
With auto-renew off, the number is not charged again: it keeps working
|
|
898
|
+
until the end of the period already paid for and is then released. Turn
|
|
899
|
+
it back on before that date and it renews as normal. Sending the value
|
|
900
|
+
the number already has changes nothing and still succeeds.
|
|
901
|
+
|
|
902
|
+
(Tags: Phone numbers)`,
|
|
903
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number", "auto_renew"], "properties": { "phone_number": { "type": "string", "description": "The number to switch." }, "auto_renew": { "type": "boolean", "description": "`false` stops renewal, `true` turns it back on. Must be a JSON boolean: a string such as `\"false\"`, a number, or a missing value is refused." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
904
|
+
method: "post",
|
|
905
|
+
pathTemplate: "/phone_number/auto_renew",
|
|
906
|
+
executionParameters: [],
|
|
907
|
+
requestBodyContentType: "application/json",
|
|
908
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
909
|
+
tags: ["Phone numbers"],
|
|
910
|
+
deprecated: false
|
|
911
|
+
}],
|
|
796
912
|
["attachPhoneNumber", {
|
|
797
913
|
name: "attachPhoneNumber",
|
|
798
914
|
description: `Attach a phone number to an existing agent.
|
|
@@ -992,33 +1108,6 @@ in an agent's \`voice.voice_id\` with \`voice.provider: cartesia\`.
|
|
|
992
1108
|
tags: ["Voice cloning"],
|
|
993
1109
|
deprecated: false
|
|
994
1110
|
}],
|
|
995
|
-
["createClonedVoice", {
|
|
996
|
-
name: "createClonedVoice",
|
|
997
|
-
description: `Clone a voice from an audio sample. The sample must be Base64 encoded and
|
|
998
|
-
1 KB to 25 MB. MP3, WAV and WebM are accepted; a non-audio body is
|
|
999
|
-
refused.
|
|
1000
|
-
|
|
1001
|
-
Creation is asynchronous. This call returns \`202\` at once with
|
|
1002
|
-
\`status: processing\`. Poll \`GET /voices/{voice_id}\` until \`status\` is
|
|
1003
|
-
\`ready\` or \`failed\`, then use the \`voice_id\` in an agent's \`voice\` config with
|
|
1004
|
-
\`voice.provider: cartesia\`.
|
|
1005
|
-
|
|
1006
|
-
You must send \`consent: true\`: you confirm you have the right to clone
|
|
1007
|
-
this voice. The attestation is recorded against the clone.
|
|
1008
|
-
|
|
1009
|
-
Limits apply per user: 5 clones an hour, 20 a day, and 200 stored
|
|
1010
|
-
(processing plus ready). A request over a limit is refused with \`429\`.
|
|
1011
|
-
|
|
1012
|
-
(Tags: Voice cloning)`,
|
|
1013
|
-
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"] },
|
|
1014
|
-
method: "post",
|
|
1015
|
-
pathTemplate: "/voices",
|
|
1016
|
-
executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
|
|
1017
|
-
requestBodyContentType: "application/json",
|
|
1018
|
-
securityRequirements: [{ "BearerAuth": [] }],
|
|
1019
|
-
tags: ["Voice cloning"],
|
|
1020
|
-
deprecated: false
|
|
1021
|
-
}],
|
|
1022
1111
|
["getClonedVoice", {
|
|
1023
1112
|
name: "getClonedVoice",
|
|
1024
1113
|
description: `One cloned voice, including its creation \`status\`.
|
|
@@ -1287,6 +1376,462 @@ It returns an \`execution_id\` at once. Poll \`getWorkflowExecution\` for the re
|
|
|
1287
1376
|
tags: ["Workflows"],
|
|
1288
1377
|
deprecated: false
|
|
1289
1378
|
}],
|
|
1379
|
+
["listWhatsappNumbers", {
|
|
1380
|
+
name: "listWhatsappNumbers",
|
|
1381
|
+
description: `The WhatsApp numbers your API key can see, oldest first. Use it to find
|
|
1382
|
+
a number id, then pass that id to the other routes. Each number carries
|
|
1383
|
+
\`capabilities\`, which says what it can send. Archived numbers are left
|
|
1384
|
+
out.
|
|
1385
|
+
|
|
1386
|
+
(Tags: WhatsApp)`,
|
|
1387
|
+
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 and pass it back unchanged." } } },
|
|
1388
|
+
method: "get",
|
|
1389
|
+
pathTemplate: "/whatsapp/numbers",
|
|
1390
|
+
executionParameters: [{ "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1391
|
+
requestBodyContentType: undefined,
|
|
1392
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1393
|
+
tags: ["WhatsApp"],
|
|
1394
|
+
deprecated: false
|
|
1395
|
+
}],
|
|
1396
|
+
["importWhatsappNumbers", {
|
|
1397
|
+
name: "importWhatsappNumbers",
|
|
1398
|
+
description: `Connects numbers from your own WhatsApp Business Account with your Meta
|
|
1399
|
+
access token. List them first with
|
|
1400
|
+
[Preview numbers](/docs/api-reference/whatsapp/previewWhatsappNumbers),
|
|
1401
|
+
then pass the ids you want.
|
|
1402
|
+
|
|
1403
|
+
The token must never expire and must carry both WhatsApp permissions
|
|
1404
|
+
(\`whatsapp_business_management\` and \`whatsapp_business_messaging\`). A
|
|
1405
|
+
system user token does. Add \`app_secret\` to receive replies. Without
|
|
1406
|
+
it the number can send but not receive.
|
|
1407
|
+
|
|
1408
|
+
Connecting a number again updates it: send a new \`access_token\` or
|
|
1409
|
+
\`app_secret\` the same way to change either. One number failing does
|
|
1410
|
+
not stop the others. It is listed in \`failed\` with the reason.
|
|
1411
|
+
|
|
1412
|
+
(Tags: WhatsApp)`,
|
|
1413
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["waba_id", "access_token", "phone_number_ids"], "properties": { "waba_id": { "type": "string", "description": "Your WhatsApp Business Account id, from WhatsApp Manager." }, "access_token": { "type": "string", "description": "A Meta access token that never expires, with both WhatsApp permissions. Stored, never returned." }, "phone_number_ids": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Meta's ids for the numbers to connect, as Preview numbers lists them." }, "app_secret": { "type": "string", "description": "Your Meta app's secret. Turns on replies. Stored, never returned." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
1414
|
+
method: "post",
|
|
1415
|
+
pathTemplate: "/whatsapp/numbers",
|
|
1416
|
+
executionParameters: [],
|
|
1417
|
+
requestBodyContentType: "application/json",
|
|
1418
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1419
|
+
tags: ["WhatsApp"],
|
|
1420
|
+
deprecated: false
|
|
1421
|
+
}],
|
|
1422
|
+
["previewWhatsappNumbers", {
|
|
1423
|
+
name: "previewWhatsappNumbers",
|
|
1424
|
+
description: `Lists the numbers on your WhatsApp Business Account with their health,
|
|
1425
|
+
and connects nothing. The access token is checked first, against the
|
|
1426
|
+
same rules as connecting, so a preview that passes can connect.
|
|
1427
|
+
|
|
1428
|
+
Connect a number with \`needs_migration\` or \`needs_registration\` only
|
|
1429
|
+
after fixing it in WhatsApp Manager, or its sends fail.
|
|
1430
|
+
|
|
1431
|
+
(Tags: WhatsApp)`,
|
|
1432
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["waba_id", "access_token"], "properties": { "waba_id": { "type": "string", "description": "Your WhatsApp Business Account id, from WhatsApp Manager." }, "access_token": { "type": "string", "description": "A Meta access token that never expires, with both WhatsApp permissions." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
1433
|
+
method: "post",
|
|
1434
|
+
pathTemplate: "/whatsapp/numbers/preview",
|
|
1435
|
+
executionParameters: [],
|
|
1436
|
+
requestBodyContentType: "application/json",
|
|
1437
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1438
|
+
tags: ["WhatsApp"],
|
|
1439
|
+
deprecated: false
|
|
1440
|
+
}],
|
|
1441
|
+
["getWhatsappNumber", {
|
|
1442
|
+
name: "getWhatsappNumber",
|
|
1443
|
+
description: `One number, with its status, quality and messaging limit, and what it
|
|
1444
|
+
can send. A number in another workspace answers \`404\`.
|
|
1445
|
+
|
|
1446
|
+
(Tags: WhatsApp)`,
|
|
1447
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
|
|
1448
|
+
method: "get",
|
|
1449
|
+
pathTemplate: "/whatsapp/numbers/{number_id}",
|
|
1450
|
+
executionParameters: [{ "name": "number_id", "in": "path" }],
|
|
1451
|
+
requestBodyContentType: undefined,
|
|
1452
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1453
|
+
tags: ["WhatsApp"],
|
|
1454
|
+
deprecated: false
|
|
1455
|
+
}],
|
|
1456
|
+
["listWhatsappTemplates", {
|
|
1457
|
+
name: "listWhatsappTemplates",
|
|
1458
|
+
description: `The number's message templates, as last synced, oldest first. Pass
|
|
1459
|
+
\`status=approved\` to see exactly the templates a send accepts. Sync the
|
|
1460
|
+
list with \`syncWhatsappTemplates\` first if a template you expect is
|
|
1461
|
+
missing.
|
|
1462
|
+
|
|
1463
|
+
(Tags: WhatsApp)`,
|
|
1464
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "status": { "type": "string", "description": "Show only templates with this review status, such as `approved`,\n`pending` or `rejected`. Lower-case; omit it for all.\n" }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["number_id"] },
|
|
1465
|
+
method: "get",
|
|
1466
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/templates",
|
|
1467
|
+
executionParameters: [{ "name": "number_id", "in": "path" }, { "name": "status", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1468
|
+
requestBodyContentType: undefined,
|
|
1469
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1470
|
+
tags: ["WhatsApp"],
|
|
1471
|
+
deprecated: false
|
|
1472
|
+
}],
|
|
1473
|
+
["syncWhatsappTemplates", {
|
|
1474
|
+
name: "syncWhatsappTemplates",
|
|
1475
|
+
description: `Pull the number's templates and their review statuses from WhatsApp into
|
|
1476
|
+
your list. Run it after you create or edit a template in Meta. It runs
|
|
1477
|
+
at most once a minute per number: a second call inside that minute
|
|
1478
|
+
answers \`429\`.
|
|
1479
|
+
|
|
1480
|
+
(Tags: WhatsApp)`,
|
|
1481
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
|
|
1482
|
+
method: "post",
|
|
1483
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/templates/sync",
|
|
1484
|
+
executionParameters: [{ "name": "number_id", "in": "path" }],
|
|
1485
|
+
requestBodyContentType: undefined,
|
|
1486
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1487
|
+
tags: ["WhatsApp"],
|
|
1488
|
+
deprecated: false
|
|
1489
|
+
}],
|
|
1490
|
+
["getWhatsappCalling", {
|
|
1491
|
+
name: "getWhatsappCalling",
|
|
1492
|
+
description: `Whether calling is on for this number and whether it can be turned on,
|
|
1493
|
+
with the list of checks. A failing check does not fail the request: the
|
|
1494
|
+
response stays \`200\` and names the check that blocks. Meta Cloud numbers
|
|
1495
|
+
only. Calling must be included in your plan.
|
|
1496
|
+
|
|
1497
|
+
(Tags: WhatsApp)`,
|
|
1498
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" } }, "required": ["number_id"] },
|
|
1499
|
+
method: "get",
|
|
1500
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/calling",
|
|
1501
|
+
executionParameters: [{ "name": "number_id", "in": "path" }],
|
|
1502
|
+
requestBodyContentType: undefined,
|
|
1503
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1504
|
+
tags: ["WhatsApp"],
|
|
1505
|
+
deprecated: false
|
|
1506
|
+
}],
|
|
1507
|
+
["setWhatsappCalling", {
|
|
1508
|
+
name: "setWhatsappCalling",
|
|
1509
|
+
description: `Turn calling on or off for a Meta Cloud number. A customer calls this
|
|
1510
|
+
number; it does not place calls. Turning it on requires every blocking
|
|
1511
|
+
check to pass, or the request answers \`409\`. Turning it off is always
|
|
1512
|
+
allowed.
|
|
1513
|
+
|
|
1514
|
+
(Tags: WhatsApp)`,
|
|
1515
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "requestBody": { "type": "object", "required": ["enabled"], "properties": { "enabled": { "type": "boolean", "description": "`true` to turn calling on, `false` to turn it off." } }, "description": "The JSON request body." } }, "required": ["number_id", "requestBody"] },
|
|
1516
|
+
method: "patch",
|
|
1517
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/calling",
|
|
1518
|
+
executionParameters: [{ "name": "number_id", "in": "path" }],
|
|
1519
|
+
requestBodyContentType: "application/json",
|
|
1520
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1521
|
+
tags: ["WhatsApp"],
|
|
1522
|
+
deprecated: false
|
|
1523
|
+
}],
|
|
1524
|
+
["listWhatsappConversations", {
|
|
1525
|
+
name: "listWhatsappConversations",
|
|
1526
|
+
description: `A number's inbox, newest activity first. Poll it with \`updated_since\`
|
|
1527
|
+
for changes since your last call, or page it with \`cursor\`. There are no
|
|
1528
|
+
event webhooks, so polling is how an integration learns about new
|
|
1529
|
+
messages.
|
|
1530
|
+
|
|
1531
|
+
(Tags: WhatsApp)`,
|
|
1532
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "filter": { "type": "string", "enum": ["all", "unread", "needs_person", "agent", "failed", "window_closed", "campaign_replies"], "default": "all", "description": "`needs_person` is a person-owned or paused conversation. `window_closed` is one you can only reach with a template." }, "q": { "type": "string", "maxLength": 200, "description": "Search the customer's name, phone number and message text." }, "updated_since": { "type": "string", "description": "An ISO 8601 date and time, such as `2026-10-01T09:00:00+00:00`. Returns\nconversations with a change at or after it. No offset means UTC.\n" }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["number_id"] },
|
|
1533
|
+
method: "get",
|
|
1534
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/conversations",
|
|
1535
|
+
executionParameters: [{ "name": "number_id", "in": "path" }, { "name": "filter", "in": "query" }, { "name": "q", "in": "query" }, { "name": "updated_since", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1536
|
+
requestBodyContentType: undefined,
|
|
1537
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1538
|
+
tags: ["WhatsApp"],
|
|
1539
|
+
deprecated: false
|
|
1540
|
+
}],
|
|
1541
|
+
["getWhatsappConversation", {
|
|
1542
|
+
name: "getWhatsappConversation",
|
|
1543
|
+
description: `One conversation: who owns it, the 24-hour window, whether the customer
|
|
1544
|
+
opted out, and the unread count. Poll it while a person is answering.
|
|
1545
|
+
|
|
1546
|
+
(Tags: WhatsApp)`,
|
|
1547
|
+
inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "A conversation id: the number id, a dash, then the customer's phone\ndigits, such as `412-919876543210`. From\n[listWhatsappConversations](/docs/api-reference/whatsapp/listWhatsappConversations).\n" } }, "required": ["conversation_id"] },
|
|
1548
|
+
method: "get",
|
|
1549
|
+
pathTemplate: "/whatsapp/conversations/{conversation_id}",
|
|
1550
|
+
executionParameters: [{ "name": "conversation_id", "in": "path" }],
|
|
1551
|
+
requestBodyContentType: undefined,
|
|
1552
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1553
|
+
tags: ["WhatsApp"],
|
|
1554
|
+
deprecated: false
|
|
1555
|
+
}],
|
|
1556
|
+
["takeOverWhatsappConversation", {
|
|
1557
|
+
name: "takeOverWhatsappConversation",
|
|
1558
|
+
description: `Take the conversation from the agent, so it stops replying and your team
|
|
1559
|
+
answers. Repeating it changes nothing. Hand it back with
|
|
1560
|
+
\`handBackWhatsappConversation\` when the person is done.
|
|
1561
|
+
|
|
1562
|
+
(Tags: WhatsApp)`,
|
|
1563
|
+
inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "A conversation id: the number id, a dash, then the customer's phone\ndigits, such as `412-919876543210`. From\n[listWhatsappConversations](/docs/api-reference/whatsapp/listWhatsappConversations).\n" } }, "required": ["conversation_id"] },
|
|
1564
|
+
method: "post",
|
|
1565
|
+
pathTemplate: "/whatsapp/conversations/{conversation_id}/take_over",
|
|
1566
|
+
executionParameters: [{ "name": "conversation_id", "in": "path" }],
|
|
1567
|
+
requestBodyContentType: undefined,
|
|
1568
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1569
|
+
tags: ["WhatsApp"],
|
|
1570
|
+
deprecated: false
|
|
1571
|
+
}],
|
|
1572
|
+
["handBackWhatsappConversation", {
|
|
1573
|
+
name: "handBackWhatsappConversation",
|
|
1574
|
+
description: `Give the conversation back to the agent, and clear a pause. The agent
|
|
1575
|
+
answers the customer's next message. Repeating it changes nothing.
|
|
1576
|
+
|
|
1577
|
+
(Tags: WhatsApp)`,
|
|
1578
|
+
inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "A conversation id: the number id, a dash, then the customer's phone\ndigits, such as `412-919876543210`. From\n[listWhatsappConversations](/docs/api-reference/whatsapp/listWhatsappConversations).\n" } }, "required": ["conversation_id"] },
|
|
1579
|
+
method: "post",
|
|
1580
|
+
pathTemplate: "/whatsapp/conversations/{conversation_id}/hand_back",
|
|
1581
|
+
executionParameters: [{ "name": "conversation_id", "in": "path" }],
|
|
1582
|
+
requestBodyContentType: undefined,
|
|
1583
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1584
|
+
tags: ["WhatsApp"],
|
|
1585
|
+
deprecated: false
|
|
1586
|
+
}],
|
|
1587
|
+
["listWhatsappMessages", {
|
|
1588
|
+
name: "listWhatsappMessages",
|
|
1589
|
+
description: `One conversation's messages, newest first. Poll forward with \`after\`
|
|
1590
|
+
(the id of the newest message you already have) to get only new ones.
|
|
1591
|
+
Page backward through history with \`cursor\`. Do not pass both.
|
|
1592
|
+
|
|
1593
|
+
(Tags: WhatsApp)`,
|
|
1594
|
+
inputSchema: { "type": "object", "properties": { "conversation_id": { "type": "string", "description": "The conversation to read." }, "after": { "type": "number", "description": "Return messages newer than this message id. `next_cursor` is null in this mode." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page. Do not combine it with `after`." } }, "required": ["conversation_id"] },
|
|
1595
|
+
method: "get",
|
|
1596
|
+
pathTemplate: "/whatsapp/messages",
|
|
1597
|
+
executionParameters: [{ "name": "conversation_id", "in": "query" }, { "name": "after", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1598
|
+
requestBodyContentType: undefined,
|
|
1599
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1600
|
+
tags: ["WhatsApp"],
|
|
1601
|
+
deprecated: false
|
|
1602
|
+
}],
|
|
1603
|
+
["sendWhatsappMessage", {
|
|
1604
|
+
name: "sendWhatsappMessage",
|
|
1605
|
+
description: `Send one message through \`phone_number_id\` to a customer, in a text,
|
|
1606
|
+
a template, an image or a document. Set \`type\` and the matching field.
|
|
1607
|
+
|
|
1608
|
+
Outside the 24-hour window, only a template goes through. A text, image
|
|
1609
|
+
or document send is refused with \`409 window_closed\`. A template send
|
|
1610
|
+
works any time and can start a new conversation.
|
|
1611
|
+
|
|
1612
|
+
The send does not take the conversation over, so the agent keeps
|
|
1613
|
+
answering. Set \`take_over: true\` to stop the agent and answer yourself.
|
|
1614
|
+
|
|
1615
|
+
\`Idempotency-Key\` is required. The same key with the same body replays
|
|
1616
|
+
the first answer instead of sending again.
|
|
1617
|
+
|
|
1618
|
+
(Tags: WhatsApp)`,
|
|
1619
|
+
inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "A unique string you choose, up to 255 characters. Required on this\nroute. The same key with the same body replays the first answer for\n24 hours instead of acting twice. A different body with the same key\nanswers `409`.\n" }, "requestBody": { "type": "object", "required": ["phone_number_id", "to", "type"], "properties": { "phone_number_id": { "type": "number", "description": "The number to send from." }, "to": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "type": { "type": "string", "enum": ["text", "template", "image", "document"] }, "text": { "type": "string", "maxLength": 4096, "description": "Required when `type` is `text`." }, "template": { "type": "object", "description": "Required when `type` is `template`.", "required": ["id"], "properties": { "id": { "type": "number", "description": "An approved template on this number, from `listWhatsappTemplates`." }, "params": { "type": "object", "description": "One value per field in the template's `fields`. Keys are\nthose field keys. String, number or null values.\n", "additionalProperties": true } } }, "media": { "type": "object", "description": "Required when `type` is `image` or `document`.", "required": ["media_id"], "properties": { "media_id": { "type": "string", "description": "The `media_id` from `uploadWhatsappMedia`, uploaded within the last 24 hours." }, "caption": { "type": "string", "maxLength": 1024 } } }, "reply_to": { "type": "number", "description": "A message id in the same conversation to quote. Not allowed with a template." }, "take_over": { "type": "boolean", "default": false, "description": "Stop the agent answering this conversation and let a person run it." } }, "description": "The JSON request body." } }, "required": ["Idempotency-Key", "requestBody"] },
|
|
1620
|
+
method: "post",
|
|
1621
|
+
pathTemplate: "/whatsapp/messages",
|
|
1622
|
+
executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
|
|
1623
|
+
requestBodyContentType: "application/json",
|
|
1624
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1625
|
+
tags: ["WhatsApp"],
|
|
1626
|
+
deprecated: false
|
|
1627
|
+
}],
|
|
1628
|
+
["getWhatsappMessage", {
|
|
1629
|
+
name: "getWhatsappMessage",
|
|
1630
|
+
description: `One message with its \`timeline\`: the delivery and read steps, oldest
|
|
1631
|
+
first. Poll it after a send to learn whether the message was delivered
|
|
1632
|
+
and read. Also shows what the send cost once it is charged.
|
|
1633
|
+
|
|
1634
|
+
(Tags: WhatsApp)`,
|
|
1635
|
+
inputSchema: { "type": "object", "properties": { "message_id": { "type": "number", "description": "Id of a message, from `listWhatsappMessages` or a send response." } }, "required": ["message_id"] },
|
|
1636
|
+
method: "get",
|
|
1637
|
+
pathTemplate: "/whatsapp/messages/{message_id}",
|
|
1638
|
+
executionParameters: [{ "name": "message_id", "in": "path" }],
|
|
1639
|
+
requestBodyContentType: undefined,
|
|
1640
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1641
|
+
tags: ["WhatsApp"],
|
|
1642
|
+
deprecated: false
|
|
1643
|
+
}],
|
|
1644
|
+
["listWhatsappOptOuts", {
|
|
1645
|
+
name: "listWhatsappOptOuts",
|
|
1646
|
+
description: `Who opted out of messages from this number, oldest first. By default it
|
|
1647
|
+
lists active opt-outs only.
|
|
1648
|
+
|
|
1649
|
+
(Tags: WhatsApp)`,
|
|
1650
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "active": { "type": "string", "enum": [true, false, "all"], "default": "true", "description": "`true` for active only, `false` for lifted only, `all` for both." }, "customer": { "type": "string", "description": "Find one customer by any spelling of their number." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["number_id"] },
|
|
1651
|
+
method: "get",
|
|
1652
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/opt_outs",
|
|
1653
|
+
executionParameters: [{ "name": "number_id", "in": "path" }, { "name": "active", "in": "query" }, { "name": "customer", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1654
|
+
requestBodyContentType: undefined,
|
|
1655
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1656
|
+
tags: ["WhatsApp"],
|
|
1657
|
+
deprecated: false
|
|
1658
|
+
}],
|
|
1659
|
+
["addWhatsappOptOut", {
|
|
1660
|
+
name: "addWhatsappOptOut",
|
|
1661
|
+
description: `Stop every message you start to this customer from this number, until
|
|
1662
|
+
the block is lifted. The response is \`201\` when the block is new and
|
|
1663
|
+
\`200\` when the customer was already blocked, in which case the entry is
|
|
1664
|
+
returned unchanged.
|
|
1665
|
+
|
|
1666
|
+
(Tags: WhatsApp)`,
|
|
1667
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "requestBody": { "type": "object", "required": ["customer"], "properties": { "customer": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "note": { "type": "string", "maxLength": 500, "description": "A note for your team." } }, "description": "The JSON request body." } }, "required": ["number_id", "requestBody"] },
|
|
1668
|
+
method: "post",
|
|
1669
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/opt_outs",
|
|
1670
|
+
executionParameters: [{ "name": "number_id", "in": "path" }],
|
|
1671
|
+
requestBodyContentType: "application/json",
|
|
1672
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1673
|
+
tags: ["WhatsApp"],
|
|
1674
|
+
deprecated: false
|
|
1675
|
+
}],
|
|
1676
|
+
["liftWhatsappOptOut", {
|
|
1677
|
+
name: "liftWhatsappOptOut",
|
|
1678
|
+
description: `Lift a block you added, or a marketing block made in WhatsApp. The entry
|
|
1679
|
+
stays in the list with \`active: false\`. A customer's own STOP cannot be
|
|
1680
|
+
lifted over the API: only the customer lifting it in WhatsApp, or
|
|
1681
|
+
messaging you again, brings them back.
|
|
1682
|
+
|
|
1683
|
+
(Tags: WhatsApp)`,
|
|
1684
|
+
inputSchema: { "type": "object", "properties": { "number_id": { "type": "number", "description": "Id of a WhatsApp number in your workspace, from\n[listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers).\nA number in another workspace answers `404`.\n" }, "opt_out_id": { "type": "number", "description": "Id of an active opt-out entry, from `listWhatsappOptOuts`." } }, "required": ["number_id", "opt_out_id"] },
|
|
1685
|
+
method: "delete",
|
|
1686
|
+
pathTemplate: "/whatsapp/numbers/{number_id}/opt_outs/{opt_out_id}",
|
|
1687
|
+
executionParameters: [{ "name": "number_id", "in": "path" }, { "name": "opt_out_id", "in": "path" }],
|
|
1688
|
+
requestBodyContentType: undefined,
|
|
1689
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1690
|
+
tags: ["WhatsApp"],
|
|
1691
|
+
deprecated: false
|
|
1692
|
+
}],
|
|
1693
|
+
["listWhatsappCampaigns", {
|
|
1694
|
+
name: "listWhatsappCampaigns",
|
|
1695
|
+
description: `Your WhatsApp campaigns, oldest first. Filter by status or by number.
|
|
1696
|
+
|
|
1697
|
+
(Tags: WhatsApp)`,
|
|
1698
|
+
inputSchema: { "type": "object", "properties": { "status": { "type": "string", "enum": ["draft", "scheduled", "in_progress", "paused", "completed", "failed", "cancelled"], "description": "Show only campaigns in this state." }, "phone_number_id": { "type": "number", "description": "Show only campaigns on this number." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } } },
|
|
1699
|
+
method: "get",
|
|
1700
|
+
pathTemplate: "/whatsapp/campaigns",
|
|
1701
|
+
executionParameters: [{ "name": "status", "in": "query" }, { "name": "phone_number_id", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1702
|
+
requestBodyContentType: undefined,
|
|
1703
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1704
|
+
tags: ["WhatsApp"],
|
|
1705
|
+
deprecated: false
|
|
1706
|
+
}],
|
|
1707
|
+
["createWhatsappCampaign", {
|
|
1708
|
+
name: "createWhatsappCampaign",
|
|
1709
|
+
description: `Create a campaign as a draft. It sends nothing until you launch it. Add
|
|
1710
|
+
contacts and launch it in the next calls. Only an approved template can
|
|
1711
|
+
be used, so every campaign starts with one. Scheduling is not offered.
|
|
1712
|
+
|
|
1713
|
+
(Tags: WhatsApp)`,
|
|
1714
|
+
inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id", "template_id"], "properties": { "name": { "type": "string", "maxLength": 255 }, "phone_number_id": { "type": "number" }, "template_id": { "type": "number", "description": "An approved template on that number." }, "campaign_mode": { "type": "string", "enum": ["broadcast", "broadcast_reply"], "default": "broadcast", "description": "`broadcast_reply` lets the agent answer replies. It needs an agent." }, "agent_id": { "type": "number", "description": "The agent that answers replies." }, "data_source": { "type": "string", "enum": ["csv", "webhook"], "default": "csv" }, "is_dynamic": { "type": "boolean", "default": false }, "variable_mapping": { "type": "object", "description": "Template field to contact field or static text.", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
|
|
1715
|
+
method: "post",
|
|
1716
|
+
pathTemplate: "/whatsapp/campaigns",
|
|
1717
|
+
executionParameters: [],
|
|
1718
|
+
requestBodyContentType: "application/json",
|
|
1719
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1720
|
+
tags: ["WhatsApp"],
|
|
1721
|
+
deprecated: false
|
|
1722
|
+
}],
|
|
1723
|
+
["getWhatsappCampaign", {
|
|
1724
|
+
name: "getWhatsappCampaign",
|
|
1725
|
+
description: `One campaign with its counts and analytics: per-source figures and the
|
|
1726
|
+
failed contacts grouped by reason. \`delivery_rate\` and \`read_rate\` are
|
|
1727
|
+
null on a number that does not report receipts.
|
|
1728
|
+
|
|
1729
|
+
(Tags: WhatsApp)`,
|
|
1730
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
|
|
1731
|
+
method: "get",
|
|
1732
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}",
|
|
1733
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
1734
|
+
requestBodyContentType: undefined,
|
|
1735
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1736
|
+
tags: ["WhatsApp"],
|
|
1737
|
+
deprecated: false
|
|
1738
|
+
}],
|
|
1739
|
+
["listWhatsappCampaignContacts", {
|
|
1740
|
+
name: "listWhatsappCampaignContacts",
|
|
1741
|
+
description: `Per-contact status for a campaign, oldest first. A contact that read the
|
|
1742
|
+
message and then replied STOP counts as read and opted out.
|
|
1743
|
+
|
|
1744
|
+
(Tags: WhatsApp)`,
|
|
1745
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "status": { "type": "string", "enum": ["pending", "sent", "delivered", "read", "replied", "failed", "skipped", "opted_out"], "description": "Show only contacts in this state." }, "limit": { "type": "number", "default": 20, "minimum": 1, "maximum": 100, "description": "Rows per page." }, "cursor": { "type": "string", "description": "The `next_cursor` from the previous page." } }, "required": ["campaign_id"] },
|
|
1746
|
+
method: "get",
|
|
1747
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/contacts",
|
|
1748
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }, { "name": "status", "in": "query" }, { "name": "limit", "in": "query" }, { "name": "cursor", "in": "query" }],
|
|
1749
|
+
requestBodyContentType: undefined,
|
|
1750
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1751
|
+
tags: ["WhatsApp"],
|
|
1752
|
+
deprecated: false
|
|
1753
|
+
}],
|
|
1754
|
+
["addWhatsappCampaignContacts", {
|
|
1755
|
+
name: "addWhatsappCampaignContacts",
|
|
1756
|
+
description: `Add one contact, or up to 500 at once. On a draft they are stored for
|
|
1757
|
+
launch. On a running campaign they are sent now. A contact already in
|
|
1758
|
+
the campaign is skipped, so a retry is safe. Each contact needs a
|
|
1759
|
+
\`phone_number\`; every other key is kept and can fill a template
|
|
1760
|
+
parameter through \`variable_mapping\`.
|
|
1761
|
+
|
|
1762
|
+
(Tags: WhatsApp)`,
|
|
1763
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "requestBody": { "description": "One contact object, or an array of 1 to 500.", "oneOf": [{ "type": "object", "description": "One contact. `phone_number` is required. Any other key is kept on the\ncontact and can fill a template parameter through `variable_mapping`.\n", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "contact_name": { "type": "string", "description": "A name for your team. `name` works too." } }, "additionalProperties": true }, { "type": "array", "maxItems": 500, "items": { "type": "object", "description": "One contact. `phone_number` is required. Any other key is kept on the\ncontact and can fill a template parameter through `variable_mapping`.\n", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The customer's number in international format, such as `+15551234567`." }, "contact_name": { "type": "string", "description": "A name for your team. `name` works too." } }, "additionalProperties": true } }] } }, "required": ["campaign_id", "requestBody"] },
|
|
1764
|
+
method: "post",
|
|
1765
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/contacts",
|
|
1766
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
1767
|
+
requestBodyContentType: "application/json",
|
|
1768
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1769
|
+
tags: ["WhatsApp"],
|
|
1770
|
+
deprecated: false
|
|
1771
|
+
}],
|
|
1772
|
+
["launchWhatsappCampaign", {
|
|
1773
|
+
name: "launchWhatsappCampaign",
|
|
1774
|
+
description: `Start a draft campaign: every pending contact is queued once. Needs at
|
|
1775
|
+
least one contact, unless the campaign's \`data_source\` is \`webhook\`. The
|
|
1776
|
+
plan's monthly broadcast allowance and the wallet balance are checked
|
|
1777
|
+
here. \`Idempotency-Key\` is required, so a retry does not start it twice.
|
|
1778
|
+
|
|
1779
|
+
(Tags: WhatsApp)`,
|
|
1780
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." }, "Idempotency-Key": { "type": "string", "maxLength": 255, "description": "A unique string you choose, up to 255 characters. Required on this\nroute. The same key with the same body replays the first answer for\n24 hours instead of acting twice. A different body with the same key\nanswers `409`.\n" } }, "required": ["campaign_id", "Idempotency-Key"] },
|
|
1781
|
+
method: "post",
|
|
1782
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/launch",
|
|
1783
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }, { "name": "Idempotency-Key", "in": "header" }],
|
|
1784
|
+
requestBodyContentType: undefined,
|
|
1785
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1786
|
+
tags: ["WhatsApp"],
|
|
1787
|
+
deprecated: false
|
|
1788
|
+
}],
|
|
1789
|
+
["pauseWhatsappCampaign", {
|
|
1790
|
+
name: "pauseWhatsappCampaign",
|
|
1791
|
+
description: `Stop sending until you resume. Only a running campaign can be paused. A
|
|
1792
|
+
pause you make by hand is never resumed automatically.
|
|
1793
|
+
|
|
1794
|
+
(Tags: WhatsApp)`,
|
|
1795
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
|
|
1796
|
+
method: "post",
|
|
1797
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/pause",
|
|
1798
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
1799
|
+
requestBodyContentType: undefined,
|
|
1800
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1801
|
+
tags: ["WhatsApp"],
|
|
1802
|
+
deprecated: false
|
|
1803
|
+
}],
|
|
1804
|
+
["resumeWhatsappCampaign", {
|
|
1805
|
+
name: "resumeWhatsappCampaign",
|
|
1806
|
+
description: `Resume a paused campaign. Contacts still pending are sent; a contact
|
|
1807
|
+
already sent is never sent again. The wallet and allowance are checked
|
|
1808
|
+
again, so a resume can answer \`402\`.
|
|
1809
|
+
|
|
1810
|
+
(Tags: WhatsApp)`,
|
|
1811
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
|
|
1812
|
+
method: "post",
|
|
1813
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/resume",
|
|
1814
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
1815
|
+
requestBodyContentType: undefined,
|
|
1816
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1817
|
+
tags: ["WhatsApp"],
|
|
1818
|
+
deprecated: false
|
|
1819
|
+
}],
|
|
1820
|
+
["cancelWhatsappCampaign", {
|
|
1821
|
+
name: "cancelWhatsappCampaign",
|
|
1822
|
+
description: `Stop a campaign for good. Contacts not yet sent are not sent. A completed
|
|
1823
|
+
or already-canceled campaign cannot be canceled.
|
|
1824
|
+
|
|
1825
|
+
(Tags: WhatsApp)`,
|
|
1826
|
+
inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of a WhatsApp campaign, from `listWhatsappCampaigns`." } }, "required": ["campaign_id"] },
|
|
1827
|
+
method: "post",
|
|
1828
|
+
pathTemplate: "/whatsapp/campaigns/{campaign_id}/cancel",
|
|
1829
|
+
executionParameters: [{ "name": "campaign_id", "in": "path" }],
|
|
1830
|
+
requestBodyContentType: undefined,
|
|
1831
|
+
securityRequirements: [{ "BearerAuth": [] }],
|
|
1832
|
+
tags: ["WhatsApp"],
|
|
1833
|
+
deprecated: false
|
|
1834
|
+
}],
|
|
1290
1835
|
]);
|
|
1291
1836
|
addShowWorkflow(toolDefinitionMap);
|
|
1292
1837
|
/**
|