is there a way to finish an ongoing session of an user? for example, if the user is in the middle of a session, i want to finish it so the user can start it again. is there a way to do it using an api request or something like this?
You need to modify the code, you need to find the chatSession you want to stop in ChatSession table and just remove the record for it, this will make the session restart automatically when the user interacts with the chatbot again. I think you'll have to add an endpoint for it yourself