Q:

How to use given-name entity in fulfillment in google actions?

I have been trying to make an action for google which recognises names.But whenever I try to pass $given-name entity as a parameter for an intent in the fulfillment it shows me an error telling that the parameter cannot contain '-' this character.This is the code which I am using.I am entirely new in this field.Can someone please tell me where am i making a mistake?
app.intent('Recognize Name',(conv,{given-name},{date})=>{

conv.end(`Name:${name},Date:${date}`);

});

A:

I got my answer,I realized that i need to take  parameters object as a single argument in the app.intent() and later extract them one by one.

