HappierleadsDocs
MCP server

retrigger_automations

Runs a website's automations again for a list of leads, for example after a CRM or Slack connection was fixed.

Rerun automations for leads · Changes data · Acts outside your account

Runs a website's automations again for a list of leads, for example after a CRM or Slack connection was fixed. This can send Slack messages, push to CRMs, call webhooks and add people to email campaigns. Confirm with the user before calling. Get leadIds from get_leads and automationIds from list_automations. To rerun one automation type for one lead and see the outcome, use rerun_automation_for_lead. To see what already ran for a lead, use get_lead_automation_history. leadIds and automationIds must both be non-empty lists; otherwise the call returns 400.

ConnectionAccount URL, team member URL or OAuth

Parameters

ParameterTypeRequiredDescription
websiteIdstringYesWebsite ID from list_websites.
leadIdsstring[]YesLead _ids from get_leads, e.g. ["64f1c2..."]. Must not be empty.
automationIdsstring[]YesAutomation _ids from list_automations to run for these leads, e.g. ["65a0..."]. Must not be empty.

Tool definition

What your assistant receives from tools/list:

{
  "name": "retrigger_automations",
  "title": "Rerun automations for leads",
  "annotations": {
    "title": "Rerun automations for leads",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": false,
    "openWorldHint": true
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "leadIds": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Lead _ids from get_leads, e.g. [\"64f1c2...\"]. Must not be empty."
      },
      "automationIds": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Automation _ids from list_automations to run for these leads, e.g. [\"65a0...\"]. Must not be empty."
      }
    },
    "required": [
      "websiteId",
      "leadIds",
      "automationIds"
    ]
  }
}

On this page