HappierleadsDocs
MCP server

update_automation

Changes an existing automation: its name, rule, action settings or on/off state.

Update automation · Changes data · Acts outside your account

Changes an existing automation: its name, rule, action settings or on/off state. Fields you leave out keep their current values, but a new actions object replaces all of the saved action settings. To only switch it on or off, use toggle_automation. Get automationId from list_automations, and read the current setup with get_automation first. Changes apply to every future matching lead, and an active LinkedIn campaign automation enrolls matching leads when saved. Confirm with the user when it changes where leads are sent. Returns the updated automation.

ConnectionAccount URL, team member URL or OAuth

Parameters

ParameterTypeRequiredDescription
automationIdstringYesAutomation _id from list_automations.
namestringNoNew name.
triggerobjectNoRule fields to change: when, then, trigger, interval, repeatWindowHours, dedupeScope (same values as create_automation). Other keys are ignored here.
actionsany[]NoThe action settings object, e.g. { "sentToSlack": { "sendMessagesTo": "#leads" } }. Replaces all saved action settings.
enabledbooleanNotrue to activate, false to deactivate.

Tool definition

What your assistant receives from tools/list:

{
  "name": "update_automation",
  "title": "Update automation",
  "annotations": {
    "title": "Update automation",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "automationId": {
        "type": "string",
        "description": "Automation _id from list_automations."
      },
      "name": {
        "type": "string",
        "description": "New name."
      },
      "trigger": {
        "type": "object",
        "description": "Rule fields to change: when, then, trigger, interval, repeatWindowHours, dedupeScope (same values as create_automation). Other keys are ignored here."
      },
      "actions": {
        "type": "array",
        "description": "The action settings object, e.g. { \"sentToSlack\": { \"sendMessagesTo\": \"#leads\" } }. Replaces all saved action settings."
      },
      "enabled": {
        "type": "boolean",
        "description": "true to activate, false to deactivate."
      }
    },
    "required": [
      "automationId"
    ]
  }
}

On this page