0

I have two Bots, Tom and Tevez, these Bots run on a SPA (Single Page Application)

The SPA has two buttons:

enter image description here

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:

1. enter image description here 2. enter image description here 3. enter image description here 4. enter image description here 5. enter image description here

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.

3
  • I tried to clean all cookies (stackoverflow.com/questions/179355/…) always button is clicked, but this doesn't resolve Nov 18, 2021 at 18:45
  • what happens when you click on those 2 button? can you share the code for that?
    – User6670
    Nov 19, 2021 at 13:08
  • when the page is loaded the bot doesn't show, the bot only shows when I click on some button, and when I close the bot, the bot doesn't disappear... This is a problem because when I click on bot Tom (for example) I cannot change and talk to Tevez, you understood? Nov 19, 2021 at 16:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.