Saltar al contenido principal

Function: useCreateSession()

useCreateSession(channel?): Promise<string>

Defined in: src/core/services/assistant.service.ts:111

Creates a new conversation session.

Parameters

channel?

string

Optional channel tag (e.g. "rest", "telegram", "whatsapp").

Returns

Promise<string>

The new session id.

Example

const sessionId = await useCreateSession("rest");