Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to send images as a response in rag app in dialog flow cx

I have a RAG application built with Dialogflow that retrieves data from a bucket storage containing unstructured data in PDF format. I want to include relevant images in response to the user's question and send them in the output. How can I achieve this?

Is it possible this in a custom payload? The image will vary, of course. Can images be extracted directly from the PDF, or do they need to be pre-extracted and stored separately?

Additionally, if the response does not contain an image, how can I display only plain text without the rest of the custom payload structure?

Ex. User: Show me the diagram fof last month's report. AI Assistan: here's the image: {applicable image}

0 2 507
2 REPLIES 2