Skip to main content

createScheduledTask

client.chat.createScheduledTask(data: CreateScheduledTaskRequest): Promise<unknown>

Creates a new scheduled task.

Registers a task that will be executed at a future time, tracked within the chat context.

Parameters

ParameterTypeRequiredDescription
dataCreateScheduledTaskRequestYesThe scheduled task creation payload

Returns

Promise<unknown> — A promise that resolves to the created task data

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.createScheduledTask(/* CreateScheduledTaskRequest */);
console.log(result);