I am sending the user ID and user name from the rasa web-chat as below:
// Or you can replace latest with a specific version
Now, If the chat bot is on home age of my website it will answer certain questions But when user asks personal questions like my payslip and the user is not logging i want the bot to utter "please login "
Check if the user is logged in, when running your custom action. Here’s more about it
If there’s more than one custom action, that needs to check this, you could write a decorater and name it ‘@login_required’ for example. Makes well readable code.
No, the word slot doesn’t appear in my answer at all. I don’t know your technical setup, but it would surprise me, if you need to check a slot for this. As I understood there are only certain custom actions, that require the user to be logged in, so no you don’t have to check it for every custom action.