Open conversational assistant

You can open a conversational assistant based on the assistantId.

This is essentially the same as overriding the chat assistant, and starting a new conversation.

Copy the assistantId from the Conversational Assistants page in Kustomer (go to Settings > Kustomer AI > Customer Assist).

To learn more, see Introduction to Customer Assist.

Example

import KustomerChat from '@kustomer/chat-react-native';

KustomerChat.openChatAssistant('assistantId')
  .then((assistant) => {
    // Chat UI opened to the conversational assistant
    // assistant is an object that contains some details about the conversational assistant
  })
  .catch((error) => {
    // Error opening the conversational assistant
  });