closeBot.sendLeadMessage sends a message through the lead’s connected channel.
automations/send-closebot-message.automation.ts
Inputs
ProvideleadId and a non-empty body.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send a message to a CloseBot lead.
closeBot.sendLeadMessage sends a message through the lead’s connected channel.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Send CloseBot message", () => {
onDashboardRun({ title: "Send CloseBot message" })
closeBot.sendLeadMessage({
leadId: "lead-id",
body: "Your consultation is confirmed.",
})
})
leadId and a non-empty body.