Kommunicate-Flutter-Plugin
Kommunicate-Flutter-Plugin copied to clipboard
Not able get Chat Conversation based on Bot ID on click on "Start New Conversation"
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