The prebuilt flow in Dialogflow CX of address collection uses field paths to extract information from the Address Validation API response and set that information to parameters. One of the methods that it uses is the flexible webhook response that extracts information from the JSON list:
https://cloud.google.com/dialogflow/cx/docs/concept/webhook#flexible-webhook-response
One of the examples of extracting the city field is:
$.result.address.addressComponents[?(@.componentType == ‘locality’)].componentName.text
I’m wondering what mechanism this is as I don’t see this in the documentation for webhooks at all. The at symbol is not a regular expression but the ? is. The at symbol is checking all the objects in the list for a componentType field of locality. However, I don’t see this in the documentation at all and don’t think this is a regular expression.
Thanks,
Karl
