Hi there,
My team has recently started using Microsoft PVA to create a chatbot. The chatbot is quite complicated and results in very large topics, both vertically and horizontally. Having dynamic topic redirection functionality will be a massive help in solving this. Instead of having multiple topic redirects based on a conditional statement, we could use a single topic redirect which redirects to a topic specified by a variable value.
I have tried to get this to work using the code editor. The original topic is shown below:
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
displayName: temp_main
triggerQueries:
- test dynamic redirect
actions:
- kind: SetVariable
id: setVariable_DO3Gz4
variable: Topic.TopicName
value: temp_1
- kind: BeginDialog
id: zyOpb8
dialog: cr585_bOServiceBot.topic.temp_1
Now to dynamically redirect to the topic specified by the variable "TopicName", I tried to modify the redirect block as follows:
- kind: BeginDialog
id: zyOpb8
dialog: cr585_bOServiceBot.topic.${Topic.TopicName}
However, this (and other similar attempts) causes an error when saving and when testing the chatbot. Is there any work-around for this? Or is there a plan to introduce dynamic topic redirect functionality to PVA?
Any help or information on this would be greatly appreciated.
Thanks!
cvallabh