Displaying Images in a Chatbot Interface?

Hi,

Does anyone know how to display an image in a chatbot interface?

Context:

  • I’m using a repeating group to show the conversation (data source is text).
  • The use case is GPT-4 vision.

I have added a hidden image to the RG and want to show it only when the user sends an image.

Thanks in advance!

Using streaming?

Yes, I’m streaming the responses. But my issue is how to create the conditional inside the RG cell so it displays an image only when the user sends it.

Here a quick example of how it’s displaying it incorrectly (the image should appear only when the user sends the image, not in the rest of the cells).

Well, it really depends on the plugin, I thought at some point you were using some of mine OpenAI - GPT Streaming Plugin | Bubble (or its assistant flavor) which supports in-line display, but apparently not.

Perhaps you may do an API call if you are using assistants to return the payload at opportune time.

If not assistants, I think the plugin builder will be the best person to answer.

Thanks, I’ll ask him then. That said, I think there has to be a way of playing with the logic of the conditionals. If “x”, then show the image in this cell. I’ll keep thinking.

This topic was automatically closed after 70 days. New replies are no longer allowed.