//core/com.kustomer.core.providers/KusChatProvider/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.
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.
androidJvm
KustomerCoreOptions.chatAssistantId |
androidJvm
assistantId | the initial messages belonging to assistant |