I have a Rasa bot running on my website where it guides the users around the site.
This means that in some cases the same question should have different answers and it only depends on where on the site the user is currently.
Is it possible to pass along that information and use it when selecting a response?
There are quite many pages on my site and the questions answered this way would be quite simple so I therefore intend to use the Retrieval Actions for them.
Would it be possible to use a lot of Retrieval Actions, one for each page and somehow select the correct one from those?
Or maybe it would be possible to use Knowledge Base Actions somehow?
What do you think?
I see now how I can create a Custom Connector to pass along the page metadata.
However I can’t come up with a good way to use that metadata to select a response.
You mentioned maybe using a custom action or something else. Do you have time to elaborate?
Hi again @akelad!
You suggested using a custom action, but would it be possible to use a custom nlu component instead?
I tried it but noticed that the metadata is only avaiable in rasa.core.channels.UserMessage not in rasa.nlu.training_data.Message for the input to the process functions.
Can I access the metadata field in custom nlu components in any other way?
Would regular intents be better?
The problem that i have is that users can ask simple questions like “Where do i click now?” or “What should I write here?” etc. and they can do that on many different pages on my website. Those questions should have different answers depending on where on the website they are. I therefore pass along a page id in the metadata that i want to use to limit the response selection to those who belong to that page.
Wait now I see what you mean!
Hmm, could work but still not optimal since there are thousands of similar but different intents and each intent may only be valid on a few pages. That’s why i would like to do the filtering first.