Kommunicate-Flutter-Plugin icon indicating copy to clipboard operation
Kommunicate-Flutter-Plugin copied to clipboard

Not able get Chat Conversation based on Bot ID on click on "Start New Conversation"

Open AgnelSelvan opened this issue 6 months ago • 1 comments

I want to chat with specific bot on Kommunicate, so by passing "conversationAssignee" on going to initial chat screen it worked, but while coming from conversation list to "Start a New Conversation", I was navigated to default Chat Bot on Kommunicate.

Below attached the snippet of our dart code

dynamic user = {
    "userId": "ABC",
    'password': "password",
    "ownerId": "ownerId",
    "Authorization": "Token",
};
dynamic conversationObject = {
    'appId': '<APP_ID>',
    'kmUser': jsonEncode(user),
    "conversationAssignee": '<bot-id>',
     'defaultAssignee':'<bot-id>',
     'botIds': ['<bot-id>',],
    'isSingleConversation': false,
    'skipConversationList': false,
};

await KommunicateFlutterPlugin.updateDefaultSetting(conversationObject);
await KommunicateFlutterPlugin.updateChatContext(user);
var result = await KommunicateFlutterPlugin.buildConversation(conversationObject);

Attached video for your reference

https://github.com/user-attachments/assets/a25940bf-65c6-4d35-875a-7fcdadb06a1a

AgnelSelvan avatar Jul 31 '24 15:07 AgnelSelvan