I'm very new to DialogFlow - but I've figured out enough to set up a working DialogFlow + Google Chat integration based on a Cloud Storage bucket of unstructured data. As it is, it's doing a very good job answering questions based on that data.
However, I'm struggling to figure out how to deal with the rich content that DialogFlow generates (citations, links, etc). What I'm hoping to achieve is that the chatbot answers the questions and also provides links or buttons to the sources used for that answer (citations).
I'm pretty sure I have to process the JSON of the DialogFlow custom payload in a way that Google Chat can consume, but I have no idea how to do that.
Can someone point me in the right direction of how to handle this?
Thanks!
Solved! Go to Solution.
So, after exploring a lot of options and with a lot of help from Google Gemini, I landed on a solution that worked for me. One of my challenges was that I wanted to process the citations that were generated from my data store. You have more flexibility with session parameters and using conditional payloads when using Routes+Intents vs data stores. To work around that, I created 1 custom payload in my data store fulfillment that created hyperlinks to the 3 documents cited. If there are less than 3 documents cited, it just returns blank lines. Here's my entire process with some details (please don't judge my code - I'm not a developer 😉
Data Store Fulfillment setup
The results look like this:
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |