MCP is live.Set upAsk the community
OmniDimension
Agents

Update a post-call action

Change fields of one post-call action. Fields you don't send keep their value. The type cannot change.

Path parameters

agent_idintegerrequired

The ID of the agent.

action_idintegerrequired

The ID of the post-call action.

Body

typeenum

The channel. It cannot change after the action is created: delete it and add a new one. google_sheets, slack, salesforce, hubspot and zoho_bigin deliver through an account connected in the dashboard: pass its id as integration_id (see List integrations).

One of: emailwebhookomni_crmcloud_whatsappworkflowgoogle_sheetsslacksalesforcehubspotzoho_bigin

integration_idinteger

google_sheets, slack, salesforce, hubspot, zoho_bigin only, required: the id of your integration of that type.

spreadsheet_idstring

google_sheets only, required: the id in the sheet's URL, the part after /d/.

spreadsheet_namestring

google_sheets only: the sheet's name, for display.

worksheet_namestring

google_sheets only: the tab to append to. Defaults to Sheet1.

channel_idstring

slack only: the channel id. Send this or channel_name.

channel_namestring

slack only: the channel name. Send this or channel_id.

object_namestring

salesforce: Lead (default), Contact, Account, Opportunity, Case, Task or Product. hubspot, required: contact, company, deal or ticket. Both send a fixed set of fields for the chosen object, so they take no extracted_variables.

create_call_logboolean

zoho_bigin only: log the call in Zoho Bigin. Defaults to true.

update_contactboolean

zoho_bigin only: update a matching contact with what the call captured. Defaults to true.

create_contactboolean

zoho_bigin only: create a contact when no contact matches. Defaults to true.

actionenum

salesforce only: upsert finds the record by the caller's number and updates it or creates it. create creates a new record every call. Defaults to create.

One of: createupsert

match_fieldstring

salesforce only, with upsert: the phone field the caller's number is looked up in. Defaults to Phone.

log_callboolean

salesforce only: log the call on the record, with the summary and recording link. Defaults to false.

add_noteboolean

salesforce only: add the call summary as a note on the record. Defaults to false.

recipientsstring[]

email only, required: the addresses to notify.

urlstring

webhook only, required: the endpoint that receives a POST with the call payload.

Format uri

phone_number_idinteger

cloud_whatsapp only, required: your Cloud WhatsApp number the message is sent from. Also send template_id or templates, or nothing is sent.

template_idinteger

cloud_whatsapp only: an approved template on that number.

template_variablesobject[]

cloud_whatsapp only: which extracted variable fills each template placeholder.

+ Show child fields (2)
indexstring

The placeholder number, as a string.

extracted_varstring

The key of the extracted variable whose value fills this placeholder.

templatesobject[]

cloud_whatsapp only: one or more templates to send.

+ Show child fields (4)
template_idinteger

An approved template on the chosen number.

usage_descriptionstring

When this template should be sent. After the call, the model reads these descriptions to choose which templates fit the conversation.

always_sendboolean

Send this template after every call, whichever templates the model chooses.

variable_mappingsobject[]

How to fill each template placeholder.

+ Show child fields (5)
indexstring

The placeholder number, as a string.

extracted_varstring

The extracted variable whose value fills this placeholder.

static_valuestring

A fixed value for this placeholder. When set, it is used instead of the extracted variable.

modeenum

Which input the dashboard shows for this placeholder. It does not change the value sent: a static_value is used first, then the extracted variable, then fallback_value.

One of: variablestatic

fallback_valuestring

The value to use when the variable is not extracted.

workflow_idinteger

workflow only, required: the workflow to run. It must have a published version, or the action is skipped.

includestring[]

Which sections to include.

One of: summaryextracted_variablesfullConversationsentiment

extracted_variablesobject[]

Variables the model should pull out of the conversation. A key already used by another action on this agent must have the same prompt, or the request is refused with 400. Other actions are never changed to match.

+ Show child fields (2)
keystringrequired

Unique identifier for the variable in the post-call payload.

promptstringrequired

Instruction for the model on what to pull out of the conversation.

trigger_call_statusesstring[]

Call outcomes that fire this action. Omit to use the default (completed, voicemail_detected).

One of: completedvoicemail_detectedfailedno-answerbusycanceled

user_idintegerresellers only

Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.

Was this page helpful?