Start new conversation
Starts a new conversation, or opens a new conversation with a message.
To start a new conversation, call startNewConversation
:
import KustomerChat from '@kustomer/react-native';
KustomerChat.startNewConversation();
Parameters
startNewConversation
accepts an optional KustomerInitialMessage
object as a
parameter, and a Record<string, string>
object as a second parameter, as a
custom description map.
import KustomerChat from '@kustomer/react-native';
KustomerChat.startNewConversation(
{
body: 'Hello, I have a question',
direction: 'user',
},
{
'custom.description': 'This is a custom description',
'user.subscribed': 'true', // pass any custom string-string you want
}
);
Updated over 1 year ago