hello everyone, here is the brief of the job that I want to do:
User provides name and email address. It gets stored for that specific user and a link is generated where the url contains a payload ( the user id of that user).
when any other user clicks on that link, the chatbot will show that data of that specific user.
It would be really great if anyone could help me get started with it.
This Response or Custom Action will read the slots value. From what I understood, you want to generate a URL with the ID of the user, so you either want to create a new unique ID or retrieve it from a database according to the email. That means you will have to use a Custom Action.
Custom Actions are just regular Python code you can run as a response to an Intent. In this Custom Action, you can access the name and email Slots with tracker.get_slot() (e.g. tracker.get_slot('name')), and do whatever you want with that information.
thanks a lot for this detailed and specific guide.
But if I connect it to a django website, then how can I receive information from a url paramter ( where there will be the user id payload ) and use it to retrieve information from rasa?
Inside Custom Actions, since you can write any regular Python code, upload the relevant information in a database, then query that database from the website