I'm currency trying out dialogflow fulfillment with NodeJS (dialogflow-fulfillment).
I am trying to access the parameters from dialogflow, but when I'm trying to access the currency-name
parameter I get the following error: ReferenceError: name is not defined
But when I print the parameters I get: parameters: {"currency-name":["GBP","USD"],"number":500}
Currently using this code:
agent.add("parameters: " + JSON.stringify(agent.parameters.currency-name));
agent.add("parameters: " + JSON.stringify(agent.parameters));