Skip to content

UseCreateSession

katanakit-js / useCreateSession

function useCreateSession(channel?): Promise<string>;

Defined in: core/services/assistant.service.ts:283

Creates a new conversation session.

Parameter Type Description
channel? string Optional free-form channel tag (e.g. "rest").

Promise<string>

The new session id.

const sessionId = await useCreateSession("rest");