closeBot.getLeadAiStatus reports whether AI replies are enabled and applicable for a lead.
automations/get-closebot-lead-ai-status.automation.ts
Inputs
ProvideleadId.
Output
Returnsenabled, applicable, and an optional reason.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check whether CloseBot AI can respond to a lead.
closeBot.getLeadAiStatus reports whether AI replies are enabled and applicable for a lead.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Check CloseBot AI", () => {
onDashboardRun({ title: "Check CloseBot AI" })
closeBot.getLeadAiStatus({ leadId: "lead-id" })
})
leadId.
enabled, applicable, and an optional reason.