Prevent Access to chatbot

Hey, This is the first time I’m working with rasa. So if I’m not wring, one can use session_id to maintain conversational context. Is it possible to prevent access to any other aspect of the chatbot if a user isn’t logged in?

Say I have a chatbot that calculates my BMI and stores the values of my name, age, height, weight and BMI in the respective slots.

If as a user, I try to calculate the BMI, i should be prompted to enter the custom generated key to login and if i do not have one, to register and to use the created one after which I can calculate the BMI.

Thank you in advance for the help.