How do I use google cloud functions to read data from firestore and then connect that function to a webhook in dialogflow cx?
I have a collection named ‘flight-details’ in firestore which has documents with the id corresponding to each flight number. I want to retrieve a certain field from each document by matching the flight number, which is given by a user on dialogflow cx, and I want to store the retrieved data as another parameter in dialogflow cx.