Hi - this is my first question here and I hope I can express myselfe understandable.
I want my bot to answer questions about currencys. And it works fine as I imagine. If someone asks a question about any currency or country using its ISO-Code I can use my REST service, using this ISO code as parameter, to get the facts for the answer how it shall be. Herefore I have some questions in my trainingsdata and a lookup table with all possible ISO codes, tested by Regex to be a possible ISO code. So fine - it works.
Now I want that the visitor also can ask by using the name of the Country or currency i.e. US-Dollar instead USD. Because I need the right ISO code as parameter for my REST request I’ve to translate the text to the right ISO Code. I can’t use synonyms because there are too many possibilitys in my lookup tables. My bot can also understand the names and the recognizion of this works fine.
I only do not know how to “translate” the name to the code and vice versa for answer. Or do I have no other choice to program this independently in my own custom action? I’ve to say I am not only a rasa newby but also a python newby