closeBot.duplicateBot copies an existing bot and returns the new bot.
automations/duplicate-closebot-bot.automation.ts
Inputs
Provide the sourcebotId.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Duplicate a CloseBot bot.
closeBot.duplicateBot copies an existing bot and returns the new bot.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Duplicate CloseBot bot", () => {
onDashboardRun({ title: "Duplicate CloseBot bot" })
closeBot.duplicateBot({ botId: "bot-id" })
})
botId.