How to handle response provided by the user in Actions on Google

I am facing a problem in handling random response by the user, like if there is a question in my 'Default welcome intent', conv.ask('say a name'); then obviously it'll leave mic open and the user gives a response with some name like Adam or Eve or anything and I want to respond it like You said Adam ,or You said Eve , how can I do this

Upvotes: 1

Views: 96

Answers (1)

Prisoner
Prisoner

Reputation: 50701

The entire point of an Intent is to capture what the user says. So you can create another Intent that would try to match the user saying a name. Then you can handle this Intent in your fulfillment webhook. Perhaps something like this:

enter image description here

Upvotes: 1

Related Questions