Reputation: 1441
I want to give the user a prompt and collect a value in particular slot. Then using this slot value for this particular slot, I want to frame a next response according to this value and ask for next slot's value in line.
Now, this I can achieve in alexa quite easily with elicitSlot
directive. But for action on google, I am not sure how to achieve this with dialogflow.
Upvotes: 1
Views: 440
Reputation: 3479
You can use Dialogflow's required parameters and dates. Make each parameter you need required and move them so the order is consistent with the order in which you want Dialogflow to ask questions for you. Then click "Define Prompt" next to the parameter you wish to create a custom response for. In the prompt you can use any of the parameter values Dialogflow has already collected.
For instance in the sample below we are collecting the date
and time
parameter. We collect the date first so that when we prompt fo the time we can use $date
in the prompt and Dialogflow will fill in that value when asking the user for the time
parameter. Here is what the Dialogflow console configuration looks like:
Upvotes: 1