Session management in rasa

hello,

I want to know how sessions can be handled in rasa My front-end is in HTML and Angular js which is calling the rasa bot api i.e. http://localhost:5005/conversations/default/respond Where can i find a link of sample code that is handling sessions?

Thanks in advance

Hi,

RASA automatically handles sessions. Your API call must contain the session ID of the user though. http://localhost:5005/conversations/<session_id>/respond.

1 Like

But when we are sending the same session id with the the same message, it’s returning blank. Any suggestion please?

@adityasingh1993 can you provide an example?

The tracker retains the conversation for that particular ID until the core is restarted so that’s why you’re facing the issue. You can use action_restart, reset slots or write stories to handle these cases.