Skip to main content

activateThreadStep

plugin.chatApi.activateThreadStep(threadId: string, stepId: string): Promise<ChatThreadStep>

Activates a step in a chat thread.

Marks the specified step as the currently active step, indicating that work is in progress on this step.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread
stepIdstringYesThe unique identifier of the step to activate

Returns

Promise<ChatThreadStep> — A promise that resolves to the activated ChatThreadStep

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.activateThreadStep('threadId', 'stepId');
console.log(result);