Simple Counter using Dialogflow Conv.Data or Conv.User.Storage
up vote 1 down vote favorite I am looking to create a super simple counter in a conversation in a firebase function using actions for google. the documentation recommends: app.intent('Default Welcome Intent', conv => conv.data.someProperty = 'someValue' ) However, typescript does not recognise any kind of dot notation after conv.data as a value, and does not allow the code to deploy. however, as far as I can determine, using app.intent('Default Welcome Intent', conv => conv.data["someProperty"] = 1; ) Does, but doesn't seem to permit counting the int... I have tried: conv.data['currentIndex'] = parseInt(conv.data['currentIndex']) + 1; conv.data['currentIndex'] = parseInt(conv.data['currentIndex'])++; conv.data['currentIndex'] += 1; I feel I am missing something super fundamental here. Thanks node.js typescript google-cloud-functions dialogflow actions-on-google share | improve th...