I want to be able to ask dialogflow a question and have it query a data source to return a response.
For example....
1) Ask what items are on my shopping list
2) Dialogflow queries a csv file (my shopping list)
3) Dialogflow recites/lists the items on the list
So the flow of data should be be [User -> Dialogflow -> Data source -> Dialogflow ->User]
Is this possible?
In short - yes.
Dialogflow can send JSON to a fulfillment webhook with the query information, and that fulfillment is expected send JSON back with the information. What you do as part of that fulfillment is pretty much up to you, as long as you can do it in just a few seconds.
So the flow would be:
User -> Dialogflow -> Fulfillment -> Dialogflow -> User