How do I use google cloud functions to read data from firestore and then connect that function to a webhook in dialogflow cx?

  Kiến thức lập trình

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.

I tried following the sample read code from the documentation, but it is showing a lot of errors.

New contributor

Nivin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website