Skip to content

Macro Action

An action applied to the conversation when a teammate uses the macro. data can only hold the keys listed for the action's type:

typedata keys
assign-conversationassignee_id
assign-conversation-to-ownernone
change-conversation-prioritypriority
add-tag-to-conversationtag_id
set-conversation-data-attributeattribute_identifier and value
close-conversationnone
open-conversationnone
snooze-conversationsnoozed_until, plus the keys that value takes
send-workflowworkflow_instance_id
workflow-connector-actionworkflow_connector_action_id
add-conversation-topictopic_id
set-ticket-custom-stateticket_custom_state_id

Send IDs as strings. Every ID must belong to your workspace.

typestringrequired

The action to apply.

Enum:"assign-conversation""assign-conversation-to-owner""change-conversation-priority""add-tag-to-conversation""set-conversation-data-attribute""close-conversation""open-conversation""snooze-conversation""send-workflow""workflow-connector-action"
Example:"add-tag-to-conversation"
dataobject

The settings for the action. Send {} for an action that takes none.

Example:
{ "tag_id": "7890" }
{ "type": "add-tag-to-conversation", "data": { "tag_id": "7890" } }