Conflixt Between End of Conversation and Agent Transfer


(Damaresh N) #1

Hi,
we have agent transfer enable in our bot, and we also configured end of conversation event handler to trigger a dialog task, but this stopped both of them from working. I have debugged and it seems the end of conversation is getting triggered event before the agent transfer is over below are the screenshots for reference

ApiExtension-agenttransfer

EndofConversation-setup-agenttransfer

EndofConversation0-agenttransfer

Kore-debug-agenttransfer

Because of this Agent Transfer event is not getting called in BotKit

Regards,
Damaresh N.


(Swagat) #2

@damaresh.n

  1. Please check the documentation for https://developer.kore.ai/docs/bots/advanced-topics/event-based-bot-actions/#End_of_Conversation
    and ensure you are checking the right reason for the event in botkit.
  2. As per https://developer.kore.ai/docs/bots/sdks/functions-for-the-botkit-sdk/#sdk-clearagentsession are you checking for chat_closed event?