customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/getInitialMessages

getInitialMessages

[androidJvm]
abstract suspend fun getInitialMessages(assistantId: String? = null): KusResult<List<KusChatMessage>>

Returns the initial messages for the chat assistant based on the assistantId. If no assistantId is provided, it defaults to the active assistant set in KusChatSetting.assistantId.

Return

A list of initial messages for the specified assistant. Returns an empty list in case of errors or if no assistant is available is configured.

See also

androidJvm

   
KustomerCoreOptions.chatAssistantId  

Parameters

androidJvm

   
assistantId the initial messages belonging to assistant