submitRemoteConfiguration

abstract suspend fun submitRemoteConfiguration(remoteConfiguration: RemoteConfiguration, createConversationOnSubmit: Boolean = true): Result<Conversation>

Creates a conversation with a remote configuration object with routing data and more.

Return

The Result of the call to create conversation. Result.Success.Data returns the conversation. If createConversationOnSubmit flag is set to false, returns Result.Empty.

Parameters

remoteConfiguration

A RemoteConfiguration object for routing data.

createConversationOnSubmit

A Boolean flag to indicate whether the conversation should be created when the pre-chat data is submitted. When set to false, the pre-chat data is stored and sent when an initial message is sent by the user. Default is true.