So I am looking for a good way to end the conversation and show the user their results.
Right now, when the bot is out of questions in all topics, it just keeps responding “I don’t know what to say”. How do I direct it to a particular response that ends the conversation logically like “OK, thanks for chatting”?
I was thinking I could just check if all of the questions in all topics except for the system topics are used up, and if yes, reuse my end-of-conversation response. I also have this feature that when a user says something like “I don’t know”, I don’t enter that topic again and save a variable like $current_topic_pop = 1, so that I know that all of the questions may not be used up in that particular topic, but that’s because it’s been popped. So I need to take that into account.
Any advice on how to end a chat correctly? Thank you!