Is there any way to save the users response automatically in power virtual agent? Currently I am asking the user a question and saving the response as a string. But I want to automatically save the responses after I ask the questions. So I will be only putting the questions in the topic of power virtual agent and want to save the responses automatically. Is it possible to do that, if so how?
Hi, @akhilreddy2810 .
@Pstork1 has a great answer if you're looking to utilize slot filling / smart matching.
If you're just looking to literally grab the entire text the user entered that caused the topic to trigger, you can use System.Activity.Text (from the System variable tab it's labeled as just Activity.Text) You can put that in a variable if you want to but below I'm just showing how you could output that value to a message.
Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.
Cheers,
Matt
I'm not sure if this helps, but if the user types something into the topic of a bot that answers a question you then ask in that Topic PVA will bypass the question and harvest the value out of the user's input. For example if a user types "How Much do things cost" for a topic with "how much" as the key then it will ask the question do you want an Apple, a Pear, or a Banana? But with the same topic if they input How much does an Apple Cost, then it will bypass the question and record Apple as the response as though the question was asked and answered.
Romain The Low-Code...
74
Pablo Roldan
61
stampcoin
10