I have two Bots, Tom and Tevez, these Bots run on a SPA (Single Page Application)
The SPA has two buttons:
The following happens: Users can talk normally with one of the Bots, but when he closes the conversation with Tom (for example) and clicks to talk to Tevez, Tom's Bot opens...
Examples:
The same thing is in reverse, when the user talks to Tevez, closes the conversation, and clicks to talk to Tom, Bot Tevez opens...
I know the obvious solution would be to reload the web page, but the client doesn't want the page to reload as it's a SPA...
So, the solution I see is to kill this instance of the bot, that is, as soon as the user ends the chat, this "Chat with an Expert" disappears!
And that way, when the user clicks to chat with another Bot, the correct Bot instance would be loaded! Please help me.