Hi,
We know that the slots are provided to save the context of the intent, now what I need to know is how to set same value to different slots, based on the intent of the utterance. For example,
Let’s say we have two places ‘A’ and ‘B’, and two slots ‘source’ and ‘destination’. Now, to the question “What is the starting point of your journey?” if the user utters, “A”, ‘A’ should be set to ‘source’ slot, or if the user utters “B”, then ‘B’ should be set to source slot.
Similarly, to the question “What is the destination of your journey?” if the user utters, “A”, ‘A’ should be set to ‘destination’ slot, or if the user utters “B”, then ‘B’ should be set to ‘destination’ slot.
I tried to achieve it by regular training, but in some cases, it’s setting the value to the wrong slot. How do I fix this?
Essentially, you’ll need a general “inform” intent, that you probably already have. Then you’ll need to make 2 more NLU models, one dedicated to “origin” and one to “destination”. This way whatever the “origin” NLU server identifies as an entity is “origin” and then you can set your “origin” slot to that value.