closeBot.attachLibraryFileToSource adds a library file to a source’s bot knowledge.
automations/attach-closebot-library-file.automation.ts
Inputs
ProvidefileId and sourceId.
Output
Returnsnull after attachment.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Attach a CloseBot library file to a source.
closeBot.attachLibraryFileToSource adds a library file to a source’s bot knowledge.
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"
export default automation("Attach CloseBot library file", () => {
onDashboardRun({ title: "Attach library file" })
closeBot.attachLibraryFileToSource({
fileId: "file-id",
sourceId: "source-id",
})
})
fileId and sourceId.
null after attachment.