rerun_automation_for_lead
Runs one type of automation again for a single lead right now and reports the outcome.
Rerun automation for one lead · Changes data · Acts outside your account
Runs one type of automation again for a single lead right now and reports the outcome. Use it to resend a failed Slack, CRM, webhook or campaign push. Failed and duplicate checks are skipped for webhooks, so the lead is sent again even if it went before. Use retrigger_automations for many leads, and get_lead_automation_history to see past runs. Get leadId from get_leads. It sends data outside the account, so confirm with the user before calling. Returns { status, result: { success, message, executedAt } }. Errors: 404 'Lead not found' or 'Lead not found in specified website'.
| Connection | Account URL, team member URL or OAuth |
|---|
Parameters
| Parameter | Type | Required | Accepts | Description |
|---|---|---|---|---|
leadId | string | Yes | any | Lead _id from get_leads. |
websiteId | string | Yes | any | Website ID the lead belongs to, from list_websites. |
automationType | string | Yes | any | One of: webhook, slack, hubspot, pipedrive, zoho, zapier, salesforce, gohighlevel, mailchimp, email-campaign. Any other value returns success false with 'Unknown automation type'. |
Tool definition
What your assistant receives from tools/list:
{
"name": "rerun_automation_for_lead",
"title": "Rerun automation for one lead",
"annotations": {
"title": "Rerun automation for one lead",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": true
},
"inputSchema": {
"type": "object",
"properties": {
"leadId": {
"type": "string",
"description": "Lead _id from get_leads."
},
"websiteId": {
"type": "string",
"description": "Website ID the lead belongs to, from list_websites."
},
"automationType": {
"type": "string",
"description": "One of: webhook, slack, hubspot, pipedrive, zoho, zapier, salesforce, gohighlevel, mailchimp, email-campaign. Any other value returns success false with 'Unknown automation type'."
}
},
"required": [
"leadId",
"websiteId",
"automationType"
]
}
}