closeBot.detachSourceFromBot removes a source and its routing configuration from a bot.
automations/detach-closebot-source.automation.ts
Inputs
ProvidebotId and sourceId.
Output
Returnsnull after CloseBot accepts the detachment.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Detach a CloseBot source from a bot.
closeBot.detachSourceFromBot removes a source and its routing configuration from a bot.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Detach CloseBot source", () => {
onDashboardRun({ title: "Detach source" })
closeBot.detachSourceFromBot({ botId: "bot-id", sourceId: "source-id" })
})
botId and sourceId.
null after CloseBot accepts the detachment.