Back to All

How to end chat

Say the user ends the conversation with bot, reaching the last interaction.

In that situation, how to end or close the chat AUTOMATICALLY, preventing the last interaction to repeat over and over?

My system needs that when the user finishes the chat, if he/she restart it again, he/she will have a different snatchbot user_id. "Restart" command is not good, cause it preserves the this user_id. I could only get a new user_id by closing the chat and reopening it again (or refreshing the page, when the chat is embedded through iframe).

That is why I am asking: how to automatically end/close the chat after the last interaction, requiring the user to reopening it again, with a different user_id, preventing the last interaction to repeat over and over?

Thanks.