Search code examples
dialogflow-esactions-on-google

Actions on Google converts spelled numbers into strings


In my dialogflow project, I am trying to identify a flight number. Currently I have my flight_number as @sys.integer. When a user says the flight number as 'fourteen forty two', it gets recognized and passed to the webhook correctly as 1442, however if a user says 'one four four two', sometimes it gets converted into strings 'one' 'four' four' 'two' and 4 gets passes to the webhook. Is there a way to make sure that it still is recognized as 1442? Or get some consistent data in the request?

Thanks.


Solution

  • Try if you can capture the values using "@sys.number-sequence" System Entity which will return you integer value.

    Please refer documentation here