How to reset a conversation ?
# 🤝help
w
Hello, I can't figure out how to reset a conversation in JS. I have embed a chat in my website for user support which uses an KB writted specificly for this purpose. The chat windows appear in HTML througt an iframe at some point with user interraction (sendEvent({type:"show"})) and sends a paylod with specific user infos. The first time, everything goes well but if the user comes back later, the previous conversation is still visible and I don't want that, I want to be able to reset the previous conversation and start a fresh one. When I use window.botpressWebChat.sendEvent({type:"createConversation"}); (either before or after sending payload) it breaks the behavior of the bot starting the conversation by saying "hello, How can I help you with xxx". Could you please help me with reseting an existing conversation, ideally before showing the bot window and sendig a payload ? Thank you ! https://cdn.discordapp.com/attachments/1239883962118045800/1239883962625560646/Capture_decran_du_2024-05-14_12-15-19.png?ex=66448b6c&is=664339ec&hm=2b9965daf6675149c8a3fd347a9d35576aa2388c5c64215796df2a9da4c2ed89&
q
Hey @witty-account-79448 , any luck with this issue?
6 Views